Pretty print in MongoDB shell as default
Asked 07 September, 2021
Viewed 546 times
  • 52
Votes

Is there a way to tell Mongo to pretty print output? Currently, everything is output to a single line and it's difficult to read, especially with nested arrays and documents.

8 Answer