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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Platforms 2016-08-26
    • Needed

      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.

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

              Created:
              Updated:
              Resolved: