Docs Home / Compass / Create an Aggregation Pipeline

Create a View from Pipeline Results

To quickly access the results of an aggregation pipeline without having to run it, you can create a view on MongoDB Compass. Views are read-only, so they can help keep your data secure by limiting user access to a predefined set of results.

About this Task

Creating a view does not save the aggregation pipeline itself.

Steps

1

Click the Save drop-down button

In the aggregation pipeline pane, click the Save drop-down button and select Create view.

undefinedSave drop-down button
2

Enter a name for your view

The view name must be between 6 and 1024 characters long.

3

Create your view

Click the Create button to create your view. Compass creates a view from your pipeline results in the same database where the pipeline was created and displays saved views with the icon.

Learn More