Query

Find, filter, aggregate and script your MongoDB data: the query bar, the Visual Query Builder, Query Code, SQL Query, IntelliShell, the Aggregation Editor, Map-Reduce and Visual Explain.

Oxys DB Studio gives you several ways to ask MongoDB a question. They all work on the same collections and share the same result views, history and saved queries, so you can start in one tool and move the query to another.

I want to…UseOpen it with
Filter, sort and page a collectionThe query barOpen a collection (Enter in the tree)
Build a filter without typing JSONVisual Query BuilderCtrl+B
Get the query as code for my applicationQuery CodeCtrl+G, or the Query Code sub-tab
Write SELECT … FROM … WHERE …SQL QueryShift+Ctrl+L, or SQL in the toolbar
Run shell scriptsIntelliShellCtrl+L, or IntelliShell in the toolbar
Group, join and reshape documentsAggregation EditorF4, or Aggregate in the toolbar
Run a map-reduce jobMap-ReduceCtrl+M
See how the server runs a queryVisual ExplainThe Explain sub-tab
Find a query I ran before, or keep oneHistory and saved queriesQuery history, Save query (Ctrl+S)

Safety first

Querying never writes. The tools that can write say so and ask first:

  • IntelliShell asks before a script that updates, deletes or drops anything, and refuses those scripts outright on a read-only connection.
  • The Aggregation Editor asks before a pipeline that ends in $out or $merge.
  • Map-Reduce asks before writing its result into a collection.
  • SQL Query only runs SELECT.

New to the application? Start with your first query.