Add shell helpers for inclusion/exclusion field list

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:

      	db.zips.find({state:'NY'}, includeFields("city","zip","pop"))
      

      Which would be equivalent to:

            db.zips.find({state:'NY'}, { "city" : 1, "zip" : 1, "pop" : 1 })
      

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: