DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
Commands
Aggregation
Query And Write
Operators
Accumulators
Aggregation
Arithmetic Expression
Array Expression
Array Query
Array Update
Bitwise
Bitwise Query
Bitwise Update
Comparison Query
Conditional Expression
Data Size
Date Expression
Element Query
Evaluation Query
Field Update
Geospatial
Literal Expression
Logical Query
Miscellaneous
Miscellaneous Query
$comment
$natural
$rand
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
Reference/Operators/Miscellaneous Query

MongoDB Query Language (MQL) Miscellaneous Query Operators

$comment

The $comment operator adds a comment to a query to help identify the query in logs and profiler output.

$natural

The $natural operator forces the query to use the natural order of documents in a collection, providing control over document ordering and retrieval.

$rand

The $rand operator generates a random float value between 0 and 1.

Copyright © DocumentDB a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.