An aggregation pipeline in MongoDB is a framework for data aggregation, modeled on the concept of data processing pipelines. Documents are processed in multiple stages, where each stage transform the documents into an aggregated result. The most basic pipeline stages provide filters that operate like queries and document transformations that modify the form of the input documents. Other pipeline operations provide tools for grouping and sorting by shared field value, summarizing data, and other computations.