MongoDB query compiled from plain English against the ecommerce sample schema, then verified by running it.
{
"type": "aggregation",
"collection": "orders",
"pipeline": [
{},
{},
{}
]
}
$match — filters on status.$group — groups by {"$dateToString":{"format":"%Y-%m","date":"$placedAt"}} and aggregates revenue.$sort — orders by _id.totalCents stores money as an integer number of cents — divide by 100 before displaying it.$group, revenue totals $totalCents — one output document per distinct {"$dateToString":{"format":"%Y-%m","date":"$placedAt"}}.Write this in plain English instead. Mask Databases compiles the sentence above into exactly this query at build time — no AI at runtime, and you can read the output in a diff.
Try it in the playground → No signup, runs in your browser.