Docs Menu

Docs HomeMongoDB Manual

Aggregation Commands


For details on a specific command, including syntax and examples, click on the link to the command's reference page.

Performs aggregation tasks such as $group using an aggregation pipeline.
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.

←  Database Commandsaggregate →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.