mongodb query language to retrive data code example
Example 1: query mongodb
db.inventory.find( { status: "D" } )
Example 2: query mongodb
db.inventory.find( {} )
db.inventory.find( { status: "D" } )
db.inventory.find( {} )