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.
Mongodb – Pretty print in MongoDB shell as default
command-line-interfacemongo-shellmongodb
Related Topic
- Mongodb – How to drop a MongoDB database from the command line
- Mongodb – How to list all collections in the MongoDB shell
- Python – “Large data” workflows using pandas
- Mongodb – how to enable mongodb cli pretty print? – db.col.find().pretty() not working
- Mongodb – Printing Mongo query output to a file while in the mongo shell
Best Answer
(note: this is answer to original version of the question, which did not have requirements for "default")
You can ask it to be pretty.