Database Manual / Reference / Query Language / Query Predicates

Miscellaneous Query Predicate Operators其他查询谓词运算符

The following operators perform specialized functions in query predicates.以下运算符在查询谓词中执行特殊功能。

Name名称Description描述
$exprAllows use of expressions in query predicates.允许在查询谓词中使用表达式。
$jsonSchemaValidates documents against the given JSON Schema.根据给定的JSON模式验证文档。
$modMatches documents based on the result of a modulo operation on a field value.根据字段值的模运算结果匹配文档。
$regexMatches documents where values match a specified regular expression.匹配值与指定正则表达式匹配的文档。
$whereMatches documents that satisfy a JavaScript expression.匹配满足JavaScript表达式的文档。