Run a script against your database — no shell, no setup
Sometimes a query builder isn’t enough. You need a loop, a transform, a one-off backfill — real logic against real data. The usual answer is to install a shell, wire up credentials on your laptop, and hope you’re pointed at the right cluster.
There’s a faster way.
Write it, run it, in the browser
DataStudio’s Script Runner lets you write a script and run it against any database you’ve connected — no shell to install, no local credentials to manage. Pick a connection and a database, write your logic, and run. It speaks both plain JavaScript and familiar mongosh-style commands, so the snippets you already know just work.
When you’ve written something worth keeping, save it — and it’s there next time, for you or your team.
How it works
- Two ways to write — plain JavaScript for full control, or
mongosh-style commands you already know. - Scoped to a connection — pick the database; the script runs there, nowhere else.
- Save and reuse — name a script and reopen it any time, no copy-pasting from a notes app.
- Right in DataStudio — no shell install, no laptop credentials, no context switch.
Who it’s for
Engineers and ops folks who need more than a query — a backfill, a cleanup, a quick report — without the ceremony of setting up a local shell against production.
Try it on your own data
Start your free 30-day trial → — no credit card required. Or browse the full DataStudio walkthrough on our YouTube channel.