Format documents for easier reading.
Section: Collection bootstrap
Pretty-print query results
javascript
javascript
db.users.find({ active: true }).pretty()Explanation
Useful for ad hoc inspection in interactive sessions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Collection bootstrap