Miscellaneous Query Operators

Note注意

For details on specific operator, including syntax and examples, click on the specific operator to go to its reference page.有关特定运算符的详细信息,包括语法和示例,请单击特定运算符以转到其参考页。

Name名称Description描述
$commentAdds a comment to a query predicate.向查询谓词添加注释。
$randGenerates a random float between 0 and 1.生成0和1之间的随机浮点。
$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()方法提供的特殊提示,可用于强制进行正向或反向集合扫描。
←  $slice (projection)$comment →