MongoDB Query Language (MQL) Boolean Expression Operators
$and
Performs logical AND operation on array of expressions, returning true only if all expressions evaluate to true.
$not
Performs logical NOT operation on an expression, returning the opposite boolean value of the input expression.
$or
Performs logical OR operation on array of expressions, returning true if any expression evaluates to true.