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

toCSV() functionality

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: