Skip to main content

MongoDB Aggregation

Aggregation operations process multiple documents and return computed results.

📌 MongoDB docs

See also: Practical MongoDB Aggregations Book

Aggregation Pipeline

An aggregation pipeline consists of one or more stages that process documents.
These documents can come from a collection, a view, or a specially designed stage.

🌐 MongoDB docs