Conclusion / Learn

MongoDB Aggregation

In this unit, you learned how to use aggregation in MongoDB and create an aggregation pipeline. You also learned how to use several of the most common aggregation stages, including:

  • $match

  • $group

  • $sort

  • $limit

  • $project

  • $count

  • $set

  • $out

Resources

Use the following resources to learn more about inserting and finding documents in MongoDB:

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