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