MongoDB Aggregation with Node.js
Learn how to create aggregation pipelines with Node.js.
MongoDB Aggregation with Node.js
Unit Overview
In this unit, you will learn how to perform basic aggregation with Node.js. First, you will learn what aggregation is, followed by the stages and operators that can be used in an aggregation pipeline. Then, you'll learn how to use the $match
and $group
stages of an aggregation pipeline. Finally, you'll learn how to use the $sort
and $project
stages of an aggregation pipeline.
Prerequisites
Lessons in This Unit
- Lesson 01: Building a MongoDB Aggregation Pipeline in Node.js Applications
- Lesson 02: Using MongoDB Aggregation Stages with Node.js:
$match
and$group
- Lesson 03: Using MongoDB Aggregation Stages with Node.js:
$sort
and$project
-
01.
-
02.Lesson 2: Using MongoDB Aggregation Stages with Node.js: $match and $group
- Learn
- Practice
-
03.Lesson 3: Using MongoDB Aggregation Stages with Node.js: $sort and $project
- Learn
- Practice
-
04.Conclusion
- Learn

John McCambridge I University Curriculum Engineer
John is a Curriculum Engineer on the University team at MongoDB. Before his work as a Curriculum Engineer, he was an instructor and teaching assistant for coding boot camps at UT (Austin), and UCLA. Additionally, he worked as a QA engineer for a startup called Coder and spent five years at Apple Inc. John is a passionate software engineer and educator who enjoys taking complex topics and making them digestible for the community.

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.