Database Manual / Reference / Query Language / Query Predicates

Data Type Query Predicate Operators数据类型查询谓词运算符

Data type query predicate operators return data based on field existence or data types.数据类型查询谓词运算符根据字段存在或数据类型返回数据。

Operator运算符Description描述
$existsMatches documents that have the specified field.匹配具有指定字段的文档。
$typeMatches documents if a field is of the specified type.如果字段属于指定类型,则匹配文档。