EventGet 50% off your ticket to MongoDB.local NYC on May 2. Use code Web50!Learn more >>
MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Productschevron-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

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...
Node.jsMongoDBAggregation FrameworkJavaScript

May 07, 2021 | 13 min
Article

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

MongoDB thumbnail image

Jan 26, 2023 | 16 min read
News & Announcements

Introducing a New MongoDB Aggregations Book


Sep 23, 2022 | 1 min read
All Aggregation Framework Content
search
  • Latest
  • Highest Rated
Tutorial

Coding With Mark: Abstracting Joins & Subsets in Python

Learn how to use advanced Python to abstract subsets and joins in MongoDB data models....
MongoDB thumbnail image

Mar 19, 2024
Mark Smith
Quickstart

Java - Aggregation Pipeline

Learn how to use the Aggregation Pipeline using the MongoDB Java Driver....
MongoDB thumbnail image

Mar 01, 2024
Maxime Beugnet
Tutorial

How to Leverage an Event-Driven Architecture with MongoDB and Databricks

Learn how to develop using an event-driven architecture that leverages MongoDB Atlas and Databricks....
MongoDB thumbnail image

Jul 13, 2023
Francesco Baldissera
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

How to Use the Union All Aggregation Pipeline Stage in MongoDB 4.4

Learn how to use the Union All ($unionWith) aggregation pipeline stage, newly released in MongoDB 4.4....
MongoDB thumbnail image

Jun 09, 2023
Adrienne Tacke
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

Getting Started with Aggregation Pipelines in Rust

Query, group, and join data in MongoDB using aggregation pipelines with Rust....
MongoDB thumbnail image

Jun 09, 2023
Mark Smith