DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsAIDownloadK8s OperatorBlogsSamples
Back to DocumentationMQL Documentation
Commands
Aggregation
Aggregate
Count
Distinct
Diagnostic
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
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
MQL reference navigation
Commands
Aggregation
Aggregate
Count
Distinct
Diagnostic
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
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
Docs/Reference/Commands/Aggregation

MongoDB Query Language (MQL) Aggregation Commands

Aggregation commands process data records and return computed results. They group values from multiple documents, perform operations on the grouped data, and return a single result. Common aggregation tasks include calculating averages, sums, and counts.

Aggregate

The aggregate command is used to process data records and return computed results.

Count

Count command is used to count the number of documents in a collection that match a specified query.

Distinct

The distinct command is used to find the unique values for a specified field across a single collection.

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.