Docs Menu
Docs Home
/
Database 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

$rand

Returns a pseudo-random floating point number in the interval [0, 1). 0 included, 1 is excluded.

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. Use in conjunction with cursor.hint() to perform a collection scan to return documents in the natural order, which returns documents from a collection based on their physical order on disk rather than any logical order defined by an index.

Back

$slice