...

/

Aggregation Pipeline - Part 1

Aggregation Pipeline - Part 1

Learn what an aggregation pipeline is, and practice using operators with the different stages of the aggregation pipelines such as $match and $group.

We'll cover the following...

Aggregation fetches data based on the query, processes it, and returns the computed data. It fetches the data at multiple stages, called pipelines. We can use aggregation pipelines to combine results from multiple collections as well. An aggregation pipeline can have more than one stage and every stage performs an operation.

Below is a list of operations we can perform through an aggregation pipeline stage:

  • Filter: A filter operation is performed on a collection through a provided query.
  • Join: Records from different stages can be added to the primary collection records.
  • Group: The results of the previous stage can be grouped.
  • Sort: The results of the previous stage can be sorted.
  • Operations: Counting and merging records, or arithmetic operations.
  • Transforming the output: We can
...
Access this course and 1400+ top-rated courses and projects.