mongodb and query code example
Example 1: query mongodb
db.inventory.find( { status: "D" } )
Example 2: query mongodb
db.inventory.find( {} )
Example 3: and in mongodb
{ $and: [ <expression1>, <expression2>, ... ] }
db.inventory.find( { status: "D" } )
db.inventory.find( {} )
{ $and: [ <expression1>, <expression2>, ... ] }