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

Add pretty() feature to find()

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.2
    • Affects Version/s: None
    • Component/s: Shell
    • None

      Getting a pretty rendering of json is fairly common (to me anyway) in the shell. Today I need to do something like:

      db.foo.find().forEach(function

      {print(tojson(x));}

      );

      Wow... that's a lot of typing. Would it be simple thing to define a macro for the above code so that you could do something like:

      db.foo.find().pretty()

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            gzoller Greg Zoller
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: