MongoDB Aggregation with Java
Learn how to create aggregation pipelines with Java.
MongoDB Aggregation with Java
Unit Overview
In this unit, you will learn how to perform basic aggregation with Java. First, you will learn what aggregation is and explore the stages and operators that can be included in an aggregation pipeline. Then, you'll learn how to build the $match
and $group
stages of an aggregation pipeline by using the Aggregates
builder. You'll also learn how to build the $sort
and $project
stages of an aggregation pipeline by using the Aggregates
builder. Finally, you'll learn about the Filters
, Sorts
, and Projections
builder classes.
Prerequisites
Lessons in This Unit
- 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

Xijing Zhang I Curriculum Engineer
Xijing Zhang is currently a Curriculum Engineer here at MongoDB. Previously, she developed curriculum over at Docker after getting her degree in Electrical Engineering from the University of Southern California.

Joe Nyirenda I Senior Technical Trainer
Joe is a Senior Technical trainer based in London. Prior to joining MongoDB he consulted and delivered applications across a variety of industry sectors including publishing, utilities, telcos, vehicle telemetry, insurance, academia and government.

Daniel Curran | Senior Curriculum Designer
Daniel is a Senior Curriculum Designer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specializing in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.