Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
/ / /

Complete Aggregation Pipeline Tutorials

These step-by-step tutorials cover common aggregation tasks. They are adapted from examples in the book Practical MongoDB Aggregations by Paul Done.

Each tutorial includes examples for each of the official MongoDB drivers. Use the Select your language drop-down menu in the upper right of each tutorial to set the programming language.

This section contains tutorials that demonstrate the following aggregation tasks:

  • Filter Data

  • Group and Total Data

  • Unwind Arrays and Group Data

  • Perform One-to-One Joins

  • Perform Multi-Field Joins

Back

Sharded Collections

On this page