Docs Menu
Docs Home
MongoDB Compass

Create a View from Pipeline Results

On this page

  • About this Task
  • Steps
  • Learn More

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.

Creating a view does not save the aggregation pipeline itself.


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

Save drop-down button

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


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.

  • Views


Export Pipeline to Specific Language


Count Pipeline Results Documents