query in query mongodb code example
Example 1: $in mongodb
{ field: { $in: [<value1>, <value2>, ... <valueN> ] } }
Example 2: query mongodb
db.inventory.find( { status: "D" } )
Example 3: query mongodb
db.inventory.find( {} )
{ field: { $in: [<value1>, <value2>, ... <valueN> ] } }
db.inventory.find( { status: "D" } )
db.inventory.find( {} )