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.

1

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

Save drop-down button
2

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

3

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.

  • Manage Views in Compass

Back

Export to a Language