MongoDB Compass Readonly Edition will be deprecated in a future release. To replicate the read-only behavior in a standard Compass edition, assign users read access at the database level and enable the readOnly option in Compass.
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.
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.