Conclusion / Learn

MongoDB Aggregation with Java

In this unit, you learned how to:

  • Define an aggregation pipeline and its stages and operators.
  • Build the $match and $group stages of a pipeline by using the Aggregates builder class.
  • Build the $sort and $project stages of a pipeline by using the Aggregates builder class.
  • Use the Filters, Sorts, and Projections builder classes.

Resources

Use the following resources to learn more about performing basic CRUD with Java:

Lesson 01: Building a MongoDB Aggregation Pipeline in Java Applications

Lesson 02: Using MongoDB Aggregation Stages with Java: $match and $group

Lesson 03: Using MongoDB Aggregation Stages with Java: $sort and $project