I want nice output from Mongo Shell

If you have so many documents in your collection in MongoDB database. Sometimes you may want to retrieve a few documents. But if we run find() we can’t have nice output. You may need to have a nice indentation and line breaks. You may want results in a more readable way. Then you can use pretty().

nn

image

nn

Who can read this??

nn

image

nn

If you use pretty() you can take nice output with Mongo Shell.

nn

Tags

nn

    n

  • MongoDB
  • n

  • Mongo Shell
  • n

  • Pretty
  • n

n

Proudly powered by WordPress

Discover more from Dedunu

Subscribe now to keep reading and get access to the full archive.

Continue reading