A worked example, rendered from real sample data. Sign in to run the tool on your own input.
find
users
{"active": true}
{"fields": {"name": 1, "email": 1}, "limit": 10}{
"collection": "users",
"operation": "find",
"filter": {
"active": true
},
"projection": {
"name": 1,
"email": 1
},
"limit": 10
}
Build MongoDB queries with aggregation pipelines and operations. Part of the DevTools Surf developer suite. Browse more tools in the Database Tools collection.