toCSV() functionality

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Almost all of my queries take the form

      db.mycollection.find(

      {…}

      ).toArray().forEach(function(o)

      {print(o._id+"\t"+o.total);}

      )

      i.e. I don't want JSON output, I want CSV output because I'm copying and pasting into Excel.

              Assignee:
              Ramon Fernandez Marina
              Reporter:
              Richard Penner
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: