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

mongoexport --fields argument is ignored when exporting in JSON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: Legacy C++ Implementation
    • Fix Version/s: 2.8.0-rc4
    • Component/s: mongoexport
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mpobrien Michael O'Brien
              Reporter:
              petehotchkiss Pete Hotchkiss
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: