[DOCS-16376] [Server] Update wording on $elemMatch Created: 11/Sep/23  Updated: 12/Sep/23  Resolved: 12/Sep/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Trivial - P5
Reporter: Michael Struening Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 21 weeks, 1 day ago

 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,



 Comments   
Comment by Michael Struening [ 12/Sep/23 ]

Appreciate the reply, thank you.

Comment by Ashley Brown [ 12/Sep/23 ]

Hi michael.struening@mongodb.com, thanks for reaching out! We think this wording is pretty clear, so we'll close this ticket. Please let me know if you have questions. 

Generated at Thu Feb 08 08:15:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.