using $and and $or mongodb code example Example: and in mongodb { $and: [ <expression1>, <expression2>, ... ] }