mongodb get all results code example
Example 1: show collection data in mongodb
db.collectionName.find()
Example 2: how to print more than 20 documents mongo shell
db.collection.find().toArray()
db.collectionName.find()
db.collection.find().toArray()