mongodb where query 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( { status: "D" } )
Example 3: query mongodb
db.inventory.find( {} )