[DOCS-2643] Add direct comparison of $ vs $elemMatch usage Created: 03/Feb/14  Updated: 16/Mar/15  Resolved: 12/Sep/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.11

Type: Bug Priority: Minor - P4
Reporter: Stennie Steneker (Inactive) Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 22 weeks, 5 days ago

 Description   

The differences between the $ projection operator and $elemMatch projection operator could be better explained.

We do mention the array field limitation for $, but in the $elemMatch notes it just says "The $elemMatch projection operator is similar to the positional $ projection operator".

To further confuse things, the $elemMatch operator can be used in queries and the $ can be used in updates.

Perhaps we can do some sort of direct comparison table/summary?

Possible starting point: http://stackoverflow.com/questions/21519185/projection-vs-elemmatch



 Comments   
Comment by Githook User [ 12/Sep/14 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-2643: Clarify distinction between positional $ and projection $elemMatch.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: v2.4
https://github.com/mongodb/docs/commit/33717f9b6af689f534e2f4329e6fc569bd8880ca

Comment by Githook User [ 12/Sep/14 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-2643: Clarify distinction between positional $ and projection $elemMatch.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/138d45b14564f96d9aa63d17a3a8502d53686f93

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