mongodb aggregate get all documents code example
Example 1: get all data in collection mongodb
db.collection_name.find().pretty()
Example 2: mongodb get all rows
db.collectionName.find()
db.collection_name.find().pretty()
db.collectionName.find()