mongodb get all documents in collection code example
Example 1: get all data in collection mongodb
db.collection_name.find().pretty()
Example 2: mongodb get all rows
db.collectionName.find()
Example 3: query mongodb
db.inventory.find( {} )
db.collection_name.find().pretty()
db.collectionName.find()
db.inventory.find( {} )