MongoDB query compiled from plain English against the ecommerce sample schema, then verified by running it.
{
"type": "find",
"collection": "orders",
"filter": {
"placedAt": {}
},
"sort": {
"totalCents": -1
}
}
orders on placedAt.totalCents descending.totalCents stores money as an integer number of cents — divide by 100 before displaying it.:startOfMonth is resolved when the query runs, not when it is written — so the query keeps meaning "the last N days" instead of freezing to a fixed date.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.