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
Aggregation Framework Quickstarts
All Aggregation Framework Quickstarts
Quickstart

Getting Started with Aggregation Pipelines in Rust

MongoDB thumbnail image

Sep 23, 2022 | 15 min read
Quickstart

Getting Started with Aggregation Pipelines in Python

MongoDB thumbnail image

Sep 23, 2022 | 14 min read
Quickstart

Java - Aggregation Pipeline

MongoDB thumbnail image

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

MongoDB Advanced Aggregations With Spring Boot and Amazon Corretto

MongoDB thumbnail image

Apr 01, 2024 | 5 min read
Tutorial

Coding With Mark: Abstracting Joins & Subsets in Python

MongoDB thumbnail image

Mar 19, 2024 | 11 min read
Tutorial

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

MongoDB thumbnail image

Jul 13, 2023 | 9 min read
All Aggregation Framework Content
search
  • Latest
  • Highest Rated
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
Quickstart

Getting Started with Aggregation Pipelines in Python

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

Jun 09, 2023
Mark Smith
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