[DOCS-2204] Add exporting subdocument example to mongoexport Created: 07/Nov/13 Updated: 30/Oct/23 Resolved: 15/Aug/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Linda Qin | Assignee: | Allison Reinheimer Moore |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7, tools | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Location: http://docs.mongodb.org/manual/reference/program/mongoexport/ |
||
| Issue Links: |
|
||||
| Participants: | |||||
| Days since reply: | 7 years, 26 weeks, 2 days ago | ||||
| Description |
|
It would help if we can add an example on how to export sub documents in an array. For example, if we have a document like this:
To export the first element of array b, use āa.b.0ā as the field name:
To export the value of c in the first element of array b, use āa.b.0.cā as the field name:
|
| Comments |
| Comment by Allison Reinheimer Moore [ 15/Aug/16 ] |
|
This doesn't seem to work with the new toolchain. If this is closed in error, please open a new ticket! |