print all mongodb code example
Example 1: how to print more than 20 documents mongo shell
DBQuery.shellBatchSize = 300
Example 2: how to print more than 20 documents mongo shell
db.collection.find().toArray()
DBQuery.shellBatchSize = 300
db.collection.find().toArray()