- Reference >
mongo
Shell Methods >- Cursor Methods >
- cursor.pretty()
cursor.pretty()¶
On this page
Definition¶
Examples¶
Consider the following document:
By default, db.collection.find()
returns data in a dense format:
By using cursor.pretty()
you can set the cursor to return data in a
format that is easier for humans to parse: