DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
CommandsAggregation
OperatorsEvaluation Query
Reference/Commands/Aggregation

MongoDB Query Language (MQL) Aggregation Commands

Aggregation operations 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.

count

The `count` command is used to count the number of documents in a collection that match specific criteria.

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.