mongodb aggregation framwork - ghdrako/doc_snipets GitHub Wiki

an aggregation pipeline is an ordered series of statements, called stages, the entire output of one stage forms the entire input of the next stage, with no side effects.