[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/ |
||
| 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:
fixes to whitespace in code examples
Signed-off-by: kay <kay.kim@10gen.com> |
| 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:
fixes to whitespace in code examples
Signed-off-by: kay <kay.kim@10gen.com> |
| 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:
fixes to whitespace in code examples
Signed-off-by: kay <kay.kim@10gen.com> |
| Comment by Ravind Kumar (Inactive) [ 07/Oct/15 ] |