[DOCS-4829] Comment on: "manual/tutorial/project-fields-from-query-results.txt" Created: 17/Feb/15  Updated: 30/Oct/23  Resolved: 07/Oct/15

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

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Ravind Kumar (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

using the ruby mongo driver on yosemite 10.10.2

Location: http://docs.mongodb.org/manual/tutorial/project-fields-from-query-results/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
Referrer: http://docs.mongodb.org/manual/search/?query=projection
Screen Resolution: 2560 x 1440
repo: docs
source: tutorial/project-fields-from-query-results


Participants:
Days since reply: 8 years, 19 weeks ago

 Description   

Was wondering about how to limit fields from a subdocument. Turns out, I can specify the field using dot notation, e.g.

db.users.find(

{name:"Jim"}

,{_id:0, subdoc.field:0 })

but I had to search StackOverflow and experiment to find that functionality, rather than finding it in the docs. Thought you might like to know that someone was looking here for that, and they didn't find it.



 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}

Message: DOCS-4829 Added 'Suppress Specific Fields in Embedded Documents' section with examples

DOCS-4829 - changes based on feedback from codereivew

fixes to whitespace in code examples

DOCS-4829 - Changes per CR22320001, ready for pull

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

Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}

Message: DOCS-4829 Added 'Suppress Specific Fields in Embedded Documents' section with examples

DOCS-4829 - changes based on feedback from codereivew

fixes to whitespace in code examples

DOCS-4829 - Changes per CR22320001, ready for pull

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

Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'rkumar-mongo', u'name': u'ravind', u'email': u'ravind.kumar@10gen.com'}

Message: DOCS-4829 Added 'Suppress Specific Fields in Embedded Documents' section with examples

DOCS-4829 - changes based on feedback from codereivew

fixes to whitespace in code examples

DOCS-4829 - Changes per CR22320001, ready for pull

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

Comment by Ravind Kumar (Inactive) [ 07/Oct/15 ]

https://github.com/mongodb/docs/pull/2389

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