MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /
Query & Projection

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

$rand

Generates a random float between 0 and 1.

A 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.

Back

$slice