Logical Operators
📌 $or, $and
Takes as a value an array in which we specify selectors.
db.movieDetails.find({$or: [{“tomato.meter”: {$gt: 95}},
{“metacritic”: {$gt: 85}}]})
$and operator allows to specify multiple constraints on the same field
Last updated
Was this helpful?