a simple sandbox to test and share MongoDB queries
a simple sandbox to test and share MongoDB queries
Mongo playground: a simple sandbox to test and share MongoDB queries. Try it online : https://mongoplayground.net
Shared playgrounds are saved forever. Do not share playground containing sensitive data, as they can get accessed by anyone who get the playground link!
This playground has several limitations:
Currently, the playground can run only find(), aggregate() and update() queries
Currently, shell regex doesn't work in query.
so instead of
db.collection.find({
"k": /pattern/
})use
db.collection.find({
"k": {
"$regex": "pattern"
}
})To automatically restart the server when a file changes, use:
ls *.go internal/*.go internal/web/src/* | entr tools/restart.shThis playground is heavily inspired from The Go Playground
Editors are created with ace, and the documentation is styled using github-markdown-css
Favicon was created on favicon.io from an emoji provided by twemoji
Queries are executed in an atlas cluster graciously provided by MongoDB
No open issues yet, or sync has not completed.