Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16376

[Server] Update wording on $elemMatch

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Declined
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • None
    • None

    Description

      Looking at the information on our documentation, I found a particular sentence to be a bit confusing:

      Query for an Array Element that Meets Multiple Criteria
      Use $elemMatch operator to specify multiple criteria on the elements of an array such that at least one array element satisfies all the specified criteria.

      Being new, I read this to mean that at least one element in any array within the document needs to satisfy the criteria, not all of the criteria in the same array.  If the word 'element' after the word 'array' was removed, or perhaps changed to "one array's" it would be clearer.

      As noted, I am quite new and want to be sure that is factored into any decision to alter the documentation.

      Link for the above:

      https://www.mongodb.com/docs/manual/tutorial/query-arrays/#query-for-an-array-element-that-meets-multiple-criteria

      Thank you for your consideration,

      Attachments

        Activity

          People

            Unassigned Unassigned
            michael.struening@mongodb.com Michael Struening
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21 weeks, 1 day ago