adilfaiz001 / Learning-HUB

This repository is to mark daily checkpoint, hurdles faced or any good learning which needs to be noted in all areas of software development, will noted in issue section
0 stars 0 forks source link

MONGO: AGGREGATION FRAMEWORK #5

Open adilfaiz001 opened 3 years ago

adilfaiz001 commented 3 years ago

MONGODB UNIVERSITY - M121

adilfaiz001 commented 3 years ago

Mongo Aggregation

Mongo aggregation is the pipeline of stages which query and transform the data and can be use to do data analysis as per the requirements.

Example - Following documents pass through these stages,

_$match ----------------> $project -----------------------------> $group_  

Documents pass through first stage $match and get filtered and then second stage and $project and transform as per mapping the data, and $group used to more operation

  1. Aggregation can be composed of one or more stages