find all documents mongodb code example
Example 1: operator to return specific data of a mongodb query
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
Example 2: mongodb get all rows
db.collectionName.find()
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
db.collectionName.find()