Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to see a mongo document in a pretty mode

//To see a random document from collection in a pretty way:
db.collection.finOne({})

//To see filter results in a pretty way:
db.collection.find({filter}).pretty()
 
PREVIOUS NEXT
Tagged: #mongo #document #pretty #mode
ADD COMMENT
Topic
Name
6+9 =