Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.

Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

MongoDB Developer
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right
Products
chevron-right

Aggregation Framework

plus Follow
Sign in to follow topics
MongoDB Aggregation Framework, build aggregation pipelines to process multiple documents and return computed results.
Learn More

Featured

Article

The cost of not knowing MongoDB (V5RX) - Part 2

Discover the power of MongoDB schema optimization in the second part of The Cost of Not Knowing MongoDB series. This deep dive explores the impact of different data modeling approaches, focusing on the Bucket Pattern and Computed Pattern to enhance query performance and storage efficiency. Learn how grouping data by month or quarter can significantly reduce index size and improve read operations, while pre-computing aggregations can optimize reporting. With real-world benchmarks, load test results, and practical TypeScript code, this guide demonstrates how strategic schema design can maximize MongoDB’s potential....
MongoDB thumbnail image
Node.jsAggregation FrameworkJavaScriptMongoDB

Jan 29, 2025 | 26 min read
Artur Costa
Tutorial

Spring Data Unlocked: Getting Started With Java and MongoDB

MongoDB thumbnail image

Nov 11, 2024 | 5 min read
Tutorial

Spring Data Unlocked: Advanced Queries With MongoDB

MongoDB thumbnail image

Nov 08, 2024 | 7 min read
Aggregation Framework Articles
All Aggregation Framework Articles
Article

The cost of not knowing MongoDB (V5RX) - Part 2

MongoDB thumbnail image

Jan 29, 2025 | 26 min read
Article

Wordle Solving Using MongoDB Query API Operators

M O N G O

Feb 01, 2023 | 4 min read
Article

Aggregation Pipeline: Applying Benford's Law to COVID-19 Data

MongoDB thumbnail image

Jan 26, 2023 | 16 min read
All Aggregation Framework Articles
Aggregation Framework Quickstarts
All Aggregation Framework Quickstarts
Quickstart

Getting Started with Aggregation Pipelines in Rust

MongoDB thumbnail image

Oct 01, 2024 | 15 min read
Quickstart

Getting Started with Aggregation Pipelines in Python

MongoDB thumbnail image

Oct 01, 2024 | 14 min read
Quickstart

Java - Aggregation Pipeline

MongoDB thumbnail image

Oct 01, 2024 | 8 min read
Aggregation Framework Tutorials
All Aggregation Framework Tutorials
Tutorial

Spring Data Unlocked: Getting Started With Java and MongoDB

MongoDB thumbnail image

Nov 11, 2024 | 5 min read
Tutorial

Spring Data Unlocked: Advanced Queries With MongoDB

MongoDB thumbnail image

Nov 08, 2024 | 7 min read
Tutorial

How to Maintain Multiple Versions of a Record in MongoDB (2024 Updates)

MongoDB thumbnail image

Aug 12, 2024 | 6 min read
All Aggregation Framework Content
search
  • Latestcheck
  • Highest Rated
Article

Wordle Solving Using MongoDB Query API Operators

Let’s learn a few MongoDB Query API operators while solving Wordle
M O N G O

Jun 09, 2023
Erik Hatcher
News & Announcements

Introducing a New MongoDB Aggregations Book

Learn more about our newest book, Practical MongoDB Aggregations, by Paul Done.
MongoDB thumbnail image

Jun 09, 2023
Article

Aggregation Pipeline: Applying Benford's Law to COVID-19 Data

Using the MongoDB Aggregation Pipeline to apply Benford's law on the COVID-19 date set from Johns Hopkins University.
MongoDB thumbnail image

Jun 09, 2023
John Page (+1)
Tutorial

Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline

Learn how to use the MongoDB aggregation pipeline to create stages that will join documents and collections in a .NET Core application.
MongoDB thumbnail image

Jun 09, 2023
Nic Raboy
Tutorial

How to Use Custom Aggregation Expressions in MongoDB 4.4

Learn how to use custom aggregation expressions in your MongoDB aggregation pipeline operations.
MongoDB thumbnail image

Jun 09, 2023
Ado Kukic
Quickstart

Introduction to the MongoDB Aggregation Framework

Learn about MongoDB's aggregation framework and aggregation operators.
MongoDB thumbnail image

Jun 09, 2023
Ken W. Alger
Tutorial

MongoDB Aggregation Pipeline Queries vs SQL Queries

This is an overview of common SQL aggregation terms, functions, and concepts and the corresponding MongoDB aggregation operators.
MongoDB thumbnail image

Jun 09, 2023
Joe Karlsson
Video

How to Build an Aggregation Pipeline in MongoDB Atlas

✅ Sign-up for a free cluster at: https://mdb.link/free-7F0a1_ZLepI ✅ Get help on our Community Forums: https://mdb.link/community-7F0a1_ZLepI Having trouble creating aggregation pipelines for complex MongoDB queries? In this video, Nic Raboy demonstrates how to use the MongoDB Atlas aggregation pipeline builder, a graphical method for constructing and testing each stage of an aggregation pipeline. Docs → https://trymongodb.com/3FxVXGt Connect with Nic on Twitter: https://twitter.com/nraboy ⏱️ Timestamps ⏱️ 00:00:00 - Intro 00:00:16 - MongoDB Atlas 00:01:12 - Aggregation Pipeline Builder Overview 00:01:33 - Building a Complex Multi-Stage Aggregation Pipeline 00:08:48 - Outro — Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #database #tutorial
MongoDB thumbnail image
Play Button

Nov 01, 2022
Video

MongoDB & Node.js: Aggregation & Data Analysis (Part 2 of 4)

✅ Sign-up for a free cluster at: https://mdb.link/free-iz37fDe1XoM ✅ Get help on our Community Forums: https://mdb.link/community-iz37fDe1XoM When you want to analyze data stored in MongoDB, you can use MongoDB's powerful aggregation framework to do so. In part two of this quick start tutorial for beginners, Lauren Schaefer provides a high-level overview of the aggregation framework and demonstrates how to use it in a Node.js script. She explains how to use aggregate() to analyze data. Chapters: 00:00 Intro 00:45 What is the aggregation framework? 02:45 Create an aggregation pipeline in Atlas 06:45 Executing an aggregation pipeline in Node.js 11:07 Wrapping up Other videos in this tutorial series: Part 1: https://youtu.be/fbYExfeFsI0 Links Lauren mentions in the video: Lauren's blog post: Aggregation Framework with Node.js Tutorial https://developer.mongodb.com/quickstart/node-aggregation-framework Lauren's GitHub repo with the code from this video https://github.com/mongodb-developer/nodejs-quickstart/blob/master/aggregation.js Node.js & MongoDB Starter Template File https://github.com/mongodb-developer/nodejs-quickstart/blob/master/template.js Free MongoDB University Course: M121 The MongoDB Aggregation Framework https://university.mongodb.com/courses/M121/about Connect with Lauren: Twitter: https://twitter.com/lauren_schaefer​ TikTok: https://tiktok.com/@lauren_schaefer​ LinkedIn: https://www.linkedin.com/in/laurenjan...​ MongoDB Community: https://developer.mongodb.com/community/forums/t/hey-friends-im-lauren/168/ Subscribe to MongoDB ►►► https://bit.ly/3bpg1Z1 Connect with MongoDB: Website: https://bit.ly/2LjtNBZ Twitter: https://bit.ly/3fH87gR Facebook: https://bit.ly/3fEaIsd Linkedin: https://bit.ly/2SY9w90 Instagram: https://bit.ly/3bn9bDv Community Forums: https://bit.ly/2I8VCi5 TikTok: https://bit.ly/3fHoqdJ
MongoDB thumbnail image
Play Button

May 07, 2021