Skip to content

This repo is showing the examples for the top 5 essential aggregation pipelines in MongoDB

Notifications You must be signed in to change notification settings

amanpreet-dev/essential-aggregation-pipelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

essential-aggregation-pipelines

This repo is showing the examples for the top 5 essential aggregation pipelines in MongoDB

Examples are based on the MongoDB version 6.0

You can install MongoDB version 6.0 from here and can also use the MongoDB Atlas to try out these examples.

Sample Data

We will be using 2 sample data sets for this demo.

The first one is the products dataset and second one is the orders sample dataset. Both of these datasets are available in the data folder.

Top 5 Essential Aggregation Pipelines

  • $match
  • $group
  • $project
  • $lookup
  • $unwind

Some More Aggregation Examples

Below are some more aggregation examples that you can try out.

How to run the examples

You can run the examples by using the MongoDB Playground. You can follow the instructions here to get started with MongoDB Playground.

About

This repo is showing the examples for the top 5 essential aggregation pipelines in MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published