[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: Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Githook User [ 12/Sep/14 ] |
|
Author: {u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}Message: Signed-off-by: kay <kay.kim@10gen.com> |