Query MongoDB with SQL
Write SELECT with joins, GROUP BY and HAVING. MotionQL translates it into a MongoDB find or aggregation, shows you the translation, and runs it.


SQL on the left, the generated MongoDB query next to it.
What you can do with it
Real SELECT
DISTINCT and expressions, WHERE with AND / OR / NOT, IN, LIKE / ILIKE, BETWEEN and IS NULL.
Joins
INNER and LEFT JOIN, translated to $lookup.
Grouping
GROUP BY with aggregate functions, COUNT(DISTINCT …) and HAVING; ORDER BY, LIMIT and OFFSET.
See the translation
The generated MongoDB query is shown, and opens in IntelliShell or the aggregation editor.
Read-only by design
Only SELECT runs. INSERT, UPDATE and DELETE are refused.
.sql files
Save and open SQL scripts, and turn any query into code in nine languages.
Related features
Your next query deserves a better IDE.
Create a free account, download MotionQL, and paste your Pro key. You'll be querying in under two minutes.