This document provides an overview of aggregation in MongoDB. It introduces aggregation concepts and code examples. Key points covered include:
- The $group operator allows grouping documents and calculating aggregates like average on a field.
- The aggregation pipeline allows applying a series of operators like $match, $limit, $project, and $unwind to documents.
- Common operators like $group, $project, and $unwind are explained briefly with examples of their input and output.