This version of the documentation is archived and no longer supported. To upgrade your 6.0 deployment, see the MongoDB 7.0 upgrade procedures.
Note
For details on a specific command, including syntax and examples, click on the link to the command's reference page.
| Name | Description | 
|---|---|
| Performs aggregation tasks such as  | |
| Counts the number of documents in a collection or a view. | |
| Displays the distinct values found for a specified key in a collection or a view. | |
| Performs map-reduce aggregation for large data sets. | 
For a detailed comparison of the different approaches, see Aggregation Commands Comparison.