Mask Databases / Query examples

Get just the names and emails of all customers

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

The compiled query

{
  "type": "find",
  "collection": "customers",
  "projection": {
    "name": 1,
    "email": 1
  }
}

How the compiled query works

Example results

Live output from running this query against the sample dataset.

nameemail
Ava Chenava@example.com
Marcus Reidmarcus@example.com
Priya Nairpriya@example.com

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