For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Save a Pipeline

You can save your aggregation pipelines to find and use them again later. If you load a saved pipeline, you can make edits to the pipeline stages without changing the original saved pipeline. You can also create a view from your pipeline results.

1

In the Aggregations pane, click the Save drop-down menu and select Save as.

Save pipeline as
2
3

Click the Save button to save your pipeline. Your pipeline will be saved under the folder icon at the top left of the pipeline builder.

Rate this page

On this page