Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Query and Projection Operators

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

$comment

Adds a comment to a query predicate.

Generates a random float between 0 and 1.

New in version 4.4.2.

Back

$slice (projection)