Docs HomeMongoDB Manual

Miscellaneous Query Operators其他查询运算符

Note

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

Name名称Description描述
$commentAdds a comment to a query predicate.向查询谓词添加注释。
$randGenerates a random float between 0 and 1.生成01之间的随机浮动。
$naturalA special hint that can be provided via the sort() or hint() methods that can be used to force either a forward or reverse collection scan.可以通过sort()hint()方法提供的一个特殊提示,可用于强制进行正向或反向集合扫描。