[DOCS-5621] Comment on: "manual/tutorial/project-fields-from-query-results.txt" Created: 12/Jun/15 Updated: 15/Jun/15 Resolved: 15/Jun/15 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/manual/tutorial/project-fields-from-query-results/ |
||
| Participants: | |
| Days since reply: | 8 years, 35 weeks, 2 days ago |
| Description |
|
This document fails to describe how to limit fields to those nested in objects. e.g. { } db.stats.find( {session: 5}, {fields: { "data.x": 1, "data.y": 1 }); Is it even possible to flatten the fields so my results are {x, y}instead of {data: {x,y}}? Reporter: concerned citizen |
| Comments |
| Comment by Githook User [ 15/Jun/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by Githook User [ 15/Jun/15 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |