Saved Queries
Save and reuse MongoDB queries across your workspace
Saved Queries
Save frequently used queries to access them quickly and share with your team.
Creating Saved Queries
Run your query in the Data Explorer with desired filters, sorts, and projections
Click Save Query button in the toolbar
Enter details:
- Name - Descriptive query name
- Description - Optional notes about what the query does
- Collection - Auto-filled from current collection
Click Save to store the query
Managing Saved Queries
Accessing Queries
View all saved queries in the Queries sidebar:
- Organized by collection
- Searchable by name
- Shows last used date
Running Saved Queries
Click any saved query to:
- Navigate to the collection
- Apply the saved filter and sort
- Load results immediately
Editing Queries
Update a saved query:
- Run the query
- Modify filters or settings
- Click Update Query
- Confirm to overwrite
Deleting Queries
Remove queries you no longer need:
- Right-click the query
- Select Delete
- Confirm deletion
Deleting a saved query cannot be undone. Team members will lose access to shared queries.
Query Sharing
Team Queries
Saved queries are automatically shared with your workspace team members who have access to the collection.
Query Permissions
Query access follows collection permissions:
- Read - Can view and run queries
- Write - Can create and edit queries
- Admin - Can delete any query
Query Variables
Create dynamic queries with variables:
{
"status": "{{status}}",
"createdAt": { "$gte": "{{startDate}}" }
}
When running, you'll be prompted to enter variable values.
Query Templates
Save common query patterns as templates:
- Active records -
{ "status": "active" } - Recent items -
{ "createdAt": { "$gte": "{{date}}" } } - User-specific -
{ "userId": "{{userId}}" }