liveBook · Manning

Aggregation pipeline builder

As explained in MongoDB 8.0 in Action, Third Edition

The Aggregation Pipeline Builder is MongoDB Compass's visual interface for constructing, configuring, and previewing aggregation pipelines.

The Aggregation Pipeline Builder is a visual interface for constructing and configuring MongoDB aggregation pipelines. In MongoDB Compass, it displays collection documents, lets you add multiple processing stages, and previews the resulting dataset. section 3.3

Use the builder to:

  • Add and arrange stages through the Aggregations tab. section 3.3
  • Create pipelines from scratch or modify existing pipeline definitions. section 6.5
  • Export a pipeline into application-ready code, including mongosh and Python syntax. section 6.5
  • Preview intermediate or resulting aggregated data while developing a pipeline in Compass. section 3.3

Filtering and exporting a pipeline

Build a $match stage that filters documents by email address. Review the pipeline configuration in mongosh syntax, then export the equivalent pipeline in Python for integration into application code. section 6.5

Figure 3.2 The Aggregations tab is where you can add various stages of data processing. (Image © MongoDB 2025)

The Aggregations tab provides the visual workspace for adding data-processing stages. section 3.3

Figure 6.2 The interface shows the Export Pipeline to Language feature for a user-defined pipeline involving a match stage that filters documents by email addresses. On the left, the pipeline configuration is displayed in MongoDBs Shell (mongosh) syntax. On the right, the same pipeline is exported in Python syntax. (Image © MongoDB 2025)

The export view contrasts a user-defined match pipeline in mongosh syntax with its Python representation. section 6.5

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains interface actions and export workflow, but stops short of detailed aggregation-stage implementation.
Examples
Uses a match stage filtering email addresses and shows equivalent mongosh and Python pipeline representations.
What you can do after
Operate MongoDB Compass or Atlas to build pipelines, preview results, and export executable driver code.
How it connects
Connects aggregation pipelines with MongoDB Compass, MongoDB Atlas, mongosh, drivers, and application code.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.