Pretty printing in the MongoDB shell
db.collection.find().limit(1).pretty()
Or add DBQuery.prototype._prettyShell = true to ~/.mongorc.js
Even prettier shell.
db.collection.find().limit(1).pretty()
Or add DBQuery.prototype._prettyShell = true to ~/.mongorc.js
Even prettier shell.