MongoDB query compiled from plain English against the ecommerce sample schema, then verified by running it.
{
"type": "aggregation",
"collection": "products",
"pipeline": [
{},
{},
{}
]
}
$lookup — joins the orders collection on _id → productIds.$match — filters on orders.$project — returns only orders.$ne or $exists instead is the common mistake — it does not do the same thing.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.