Evaluation 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描述
$expr Allows use of aggregation expressions within the query language.允许在查询语言中使用聚合表达式。
$jsonSchema Validate documents against the given JSON Schema.根据给定的JSON模式验证文档。
$mod Performs a modulo operation on the value of a field and selects documents with a specified result.对字段的值执行模运算,并选择具有指定结果的文档。
$regex Selects documents where values match a specified regular expression.选择值与指定正则表达式匹配的文档。
$text Performs text search.执行文本搜索。
$where Matches documents that satisfy a JavaScript expression.匹配满足JavaScript表达式的文档。