[SERVER-14726] Add shell helpers for inclusion/exclusion field list Created: 30/Jul/14 Updated: 26/Oct/21 Resolved: 26/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Stennie Steneker (Inactive) | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
Many of the driver implementations have projection syntax which allows fields to be specified as a list/array or a hash/dictionary (default). It would be helpful if the mongo shell included similar syntactic sugar for including & excluding fields. A few examples:
Conceptually this might be something similar to:
Which would be equivalent to:
|