Mask Databases / Query examples

Find all orders over $100 placed in the last 7 days

MongoDB query compiled from plain English against the ecommerce sample schema, then verified by running it.

The compiled query

{
  "type": "aggregation",
  "collection": "orders",
  "pipeline": [
    {}
  ]
}

How the compiled query works

Things worth knowing

Example results

Live output from running this query against the sample dataset.

totalCentsstatusplacedAtcustomerIdproductIds
10300shipped2026-07-29T23:50:41.117Z6a6fda00fce7f1a072eed010["6a6fda00fce7f1a072eed013","6a6fda00fce7f1a072eed015"]
19900cancelled2026-07-27T23:50:41.117Z6a6fda00fce7f1a072eed00f["6a6fda00fce7f1a072eed016"]

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.

Related queries