Week 21 - Session 1 - Class Project (Week 2) - Mongo Aggregations Pipeline
blog image source |
The MongoDB aggregation pipeline consists of stages. Each stage transforms the documents as they pass through the pipeline:
- `$project` – select, reshape data
- `$match` – filter data
- `$group` – aggregate data
- `$sort` – sorts data
- `$skip` – skips data
- `$limit` – limit data
- `$unwind` – normalizes data
Aggregation Pipeline - https://docs.mongodb.com/manual/core/aggregation-pipeline/
Aggregations in MongoDB by Example - https://www.compose.com/articles/aggregations-in-mongodb-by-example/