Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-80

mongoexport --fields argument is ignored when exporting in JSON

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc4
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongoexport
    • None

      When exporting JSON formated data from a collection using the mongoexport command the --fields argument ( regardless of it if it is used as -f or --fields ) is ignored, so a full verbose JSON document is included for each record.

      However the --field filter is follwed should the format be set to the --csv override.

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            petehotchkiss Pete Hotchkiss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: