mongoexport exporting to json with --fields does not export _id field if it is not explicitly specified

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      This is a change from legacy, which DOES export the _id field in this case regardless of whether it is specified. Reproducing test attached (passes using legacy mongoexport).

        1. fields_json.js
          3 kB
          sam.helman@10gen.com

              Assignee:
              Unassigned
              Reporter:
              sam.helman@10gen.com
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: