Docs HomeMongoDB Manual

Element Query Operators元素查询运算符

Element operators return data based on field existence or data types.元素运算符根据字段的存在或数据类型返回数据。

Note

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

Name名称Description描述
$existsMatches documents that have the specified field.匹配具有指定字段的文档。
$typeSelects documents if a field is of the specified type.如果字段为指定类型,则选择文档。