Docs HomeMongoDB Manual

Evaluation Query Operators评估查询运算符

Evaluation operators return data based on evaluations of either individual fields or the entire collection's documents.评估运算符基于对单个字段或整个集合文档的评估返回数据。

Note

For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.有关特定运算符的详细信息,包括语法和示例,请单击该运算符参考页的链接。

Name名称Description描述
$exprAllows use of aggregation expressions within the query language.允许在查询语言中使用聚合表达式。
$jsonSchemaValidate documents against the given JSON Schema.根据给定的JSON模式验证文档。
$modPerforms a modulo operation on the value of a field and selects documents with a specified result.对字段的值执行模运算,并选择具有指定结果的文档。
$regexSelects documents where values match a specified regular expression.选择值与指定正则表达式匹配的文档。
$textPerforms text search.执行文本搜索。
$whereMatches documents that satisfy a JavaScript expression.匹配满足JavaScript表达式的文档。