[DOCS-2163] Document that {"a.0":1} syntax cannot be used to project array values Created: 29/Oct/13  Updated: 09/May/20  Resolved: 04/Nov/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: mongodb-2.6

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-11347 Dot notation in Projections not working Closed
Participants:
Days since reply: 5 years, 35 weeks, 3 days ago

 Description   

When discussing projection against array fields, the documentation needs to explicitly state that {"a.0":1} syntax can't be used to project array values (in addition to pointing users to $slice / $elemMatch, as it currently does).



 Comments   
Comment by Mark Dueck [ 11/Jun/18 ]

I was attempting to project an array element and found it was not working and did not find any mention of the problem in the documentation.  Eventually I stumbled on this ticket, I recommend updating the $project docs with this limitation: https://docs.mongodb.com/manual/reference/operator/aggregation/project/

Comment by auto [ 04/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2163: strengthening language around projections from arrays.
Branch: v2.4
https://github.com/mongodb/docs/commit/4242e0db413d7c3615adc1d07ca159095d09da91

Comment by auto [ 04/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2163: strengthening language around projections from arrays.
Branch: master
https://github.com/mongodb/docs/commit/a450ec7cd700679bcb3cf326960a664cbc1c65c3

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