The Aggregation Framework processes documents through a sequence of stages called a pipeline. Each stage transforms the documents and passes the result to the next stage—similar to Unix pipes or SQL GROUP BY + JOIN + computed columns.
ADVERTISEMENT