find with and condition in mongodb code example
Example 1: and in mongodb
{ $and: [ <expression1>, <expression2>, ... ] }
Example 2: mongodb find multiple fields
{ <field1>: <value>, <field2>: <value> ... }
{ $and: [ <expression1>, <expression2>, ... ] }
{ <field1>: <value>, <field2>: <value> ... }