MongoDB Aggregation
Learn how to create aggregation pipelines that enable you to analyze and summarize data by stringing together stages that filter, sort, group, and/or transform data.
MongoDB Aggregation
Unit Overview
In this unit, you will learn about the aggregation pipeline, which is one of MongoDB's most powerful features. You will learn how to use the aggregation pipeline to filter, sort, and organize the data in your collections.
Prerequisites
- Getting Started with MongoDB Atlas
- MongoDB and the Document Model
- MongoDB CRUD Operations: Insert and Find
Lessons in This Unit
- Lesson 01: Introduction to MongoDB Aggregation
- Lesson 02: Using
$match
and$group
Stages in a MongoDB Aggregation Pipeline - Lesson 03: Using
$sort
and$limit
Stages in a MongoDB Aggregation Pipeline - Lesson 04: Using
$project
,$count
, and$set
Stages in a MongoDB Aggregation Pipeline - Lesson 05: Using
$out
Stage in a MongoDB Aggregation Pipeline
-
01.
-
02.Lesson 2: Using $match and $group Stages in a MongoDB Aggregation Pipeline
- Learn
- Practice
-
03.Lesson 3: Using $sort and $limit Stages in a MongoDB Aggregation Pipeline
- Learn
- Practice
-
04.Lesson 4: Using $project, $count, and $set Stages in a MongoDB Aggregation Pipeline
- Learn
- Practice
-
05.Lesson 5: Using the $out Stage in a MongoDB Aggregation Pipeline
- Learn
- Practice
-
06.Conclusion
- Learn

Julie Gauthier | Senior Curriculum Engineer
Julie is a Senior Curriculum Engineer on the University Team at MongoDB. She holds a BS and MS in Computer Science, and has a background as a software engineer. Julie has taught hundreds of people web development, with a goal of empowering everyone with technology!

Laura Gutierrez Munoz I Senior Curriculum Developer
Laura Gutierrez is a computer scientist working as a MongoDB Senior curriculum developer based in Madrid (Spain) with 10+ years of experience in data modeling and data analytics.

Emily Pope | Senior Curriculum Designer
Emily is a Senior Curriculum Designer at MongoDB. Prior to MongoDB, Emily worked closely with professors at MIT and Columbia to design bootcamps in full stack development and data science at Emeritus. She also worked as an instructional designer on database and computer science learning experiences at Cengage. Emily loves learning about the everchanging tech space and is passionate about making these skills accessible to a global audience.