Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24839

toCSV() functionality

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • 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@mongodb.com Ramon Fernandez Marina
            Reporter:
            richardpenner Richard Penner
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: