Aggregation Reference
On this page
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
You can run aggregation pipelines in the UI for deployments hosted in MongoDB Atlas.
Aggregation Resources
- Aggregation Pipeline Quick Reference
- Quick reference card for aggregation pipeline.
- Aggregation Commands
- The reference for the data aggregation commands, which provide the interfaces to MongoDB's aggregation capability.
- Aggregation Commands Comparison
- A comparison of
mapReduce
andaggregate
commands. - Aggregation Pipeline Operators
- Aggregation pipeline operations have a collection of operators available to define and manipulate documents in pipeline stages.
- Variables in Aggregation Expressions
- Use of variables in aggregation pipeline expressions.
- SQL to Aggregation Mapping Chart
- An overview common aggregation operations in SQL and MongoDB using the aggregation pipeline and operators in MongoDB and common SQL statements.
- Practical MongoDB Aggregations (e-book)
- For more information on aggregations, read the Practical MongoDB Aggregations e-book.