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