Logical Query Operators逻辑查询运算符

Note注意

For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.有关特定运算符的详细信息,包括语法和示例,请单击特定运算符以转到其参考页。

Name名称Description描述
$andJoins query clauses with a logical AND returns all documents that match the conditions of both clauses.使用逻辑AND连接查询子句,并返回与两个子句的条件匹配的所有文档。
$notInverts the effect of a query expression and returns documents that do not match the query expression.反转查询表达式的效果并返回与查询表达式不匹配的文档。
$norJoins query clauses with a logical NOR returns all documents that fail to match both clauses.使用逻辑NOR连接查询子句,并返回与这两个子句不匹配的所有文档。
$orJoins query clauses with a logical OR returns all documents that match the conditions of either clause.使用逻辑OR连接查询子句,并返回与任一子句的条件匹配的所有文档。
←  $nin$and →