Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
MongoDB Branding Shape
Click here >
Docs Menu

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 Atlas. 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
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

IMPORTANT: You can also click the name of a cluster to open the Cluster sidebar, and then click Data Explorer under the Shortcuts heading.

2
  1. Select the collection.

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

Save drop-down button
3

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

4

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