show documents in mongodb code example
Example 1: show collection data in mongodb
db.collectionName.find()
Example 2: query mongodb
db.inventory.find( { status: "D" } )
Example 3: query mongodb
db.inventory.find( {} )
db.collectionName.find()
db.inventory.find( { status: "D" } )
db.inventory.find( {} )