Collection-specific view
Currently there's an option to bookmark specific query, which when selected will re-fill Query, Projection, Sort, etc. fields with previously saved values.
It is a lot better than nothing, however it has several problems/limitations:
- When you have multiple bookmarks for multiple collections it can become visually cluttered very quickly;
- Same query can be applied to multiple collections, which isn't the use case most of the time;
- Upon selecting bookmarked query an extra click on "Run" button is required;
Understanding that current functionality has its usage cases as-is, I'd like to suggest adding collection-specific views.
They would act similarly to the current bookmarks system, however with several differences/features:
They would be visible only in the collection they were created in;
Would be run automatically when selecting (e.g. no additional 'Run' button click)
Could have their own menu item upon right-click on collection. For example: "Views" -> "Today's report";
Could be marked as the default view for collection. Selecting it as default, would open that view instead of the current default '{}' query;
All views for the database could be grouped at the top level where we currently have "Collections", "GridFS Buckets", "System", under "Views" for quicker access.