a simple sandbox to test and share MongoDB queries
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
tests
vendor
web
.gitignore
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
README.md
compatibility_test.go
doc.sh
extendedJSON_test.go
main.go
page.go
playground.html
server.go
server_test.go
test.sh

README.md

Linux and macOS Build Status Go Report Card codecov

Mongo Playground

Mongo playground: a simple sandbox to test and share MongoDB queries. Try it online : mongoplayground

Limitations

Size limitations

This playground has several limitations:

  • a database can't contain more than 10 collections
  • a collection can't contain more than 100 documents
  • all collections are capped to a size of 100*1024 bytes, see mongodb capped collections for details

Queries

Currently, the playground can run only find() and aggregate() queries

shell regex

Currently, shell regex doesn't work in query.

so instead of

db.collection.find({
  "k": /pattern/
})

use

db.collection.find({
  "k": {
    "$regex": "pattern"
  }
})

Credits

This playground is heavily inspired from The Go Playground

Editors are created with ace, and the documentation is styled using github-markdown-css