DEV Community

Cover image for Introduction to Aggregation Pipeline in MongoDB
pamilerin
pamilerin

Posted on

Introduction to Aggregation Pipeline in MongoDB

Hello and Welcome back readers to this amazing series in which we are going to

explore deeply the MongoDB aggregation pipeline and how it reduces the number

of steps and simplifies the process of data extraction from your database.

But Before moving forward with Aggregation Pipeline, let us learn what are the

diiferent types of aggregation that are available or provided by MongoDB.

Types of Aggregation in MongoDB:
So MongoDB provides three types of Aggregation

  1. Map Reduce FunctionSingle

  2. Purpose Aggregation

  3. Aggregation Pipeline

Map Reduce Function:
Map Reduce is used for aggregating results for a large volume of data. Map reduce

has two main functions one is a map that groups all the documents and the second

one is the reduce which operates on the grouped data.

Top comments (1)

Collapse
 
wunmicrown profile image
pamilerin

Good