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
$getField
$sampleRate
Miscellaneous Query
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
Reference/Operators/Miscellaneous

MongoDB Query Language (MQL) Miscellaneous Operators

Miscellaneous operators include various utility and helper operators that don't fit into other categories.

$getField

The $getField operator allows retrieving the value of a specified field from a document.

$sampleRate

The $sampleRate operator randomly samples documents from a collection based on a specified probability rate, useful for statistical analysis and testing.

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.