Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 750 Bytes

1-what-is-aggregation.mdx

File metadata and controls

17 lines (10 loc) · 750 Bytes
description
Learn what an aggregation pipeline is.

📘 What is an aggregation pipeline?

An aggregation pipeline is similar to unix commands connected using pipes. We can construct modular, composable processing pipelines.

An aggregation pipeline consists of one or more stages that process documents:

Each stage performs an operation on the input documents. For example, a stage can filter documents, group documents, and calculate values.

The documents that are the output of a stage are passed as the input to the next stage.

An aggregation pipeline can return results for groups of documents. For example, return the total, average, maximum, and minimum values, etc.