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

mongoexport --fields only exports first item if there is a space in the list

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Platforms 2016-08-26
    • Needed

    Description

      If one attempts to use mongoexport with multiple fields, as in the following:

      mongoexport --db stuff --collection things --fields "foo, bar" --out output.json
      

      The operation successfully completes, but only exports the _id and foo fields, which is not what one would anticipate. We document not to include a space, but it would maybe make more sense to either support this formatting or error out if a space was included.

      Attachments

        Activity

          People

            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            allison.moore@mongodb.com Allison Reinheimer Moore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: