Vex · API

QuerySchema

QuerySchema is the Zod schema of the query DSL. It is strict: parsing fails on any key the DSL does not define, here with Unrecognized key: "offset". The DSL has no offset; a later page is requested with a filter on the last row of the previous page.

Query
{
  from: ['bookings'],
  fields: ['bookings.id', 'bookings.seats'],
  limit: 3,
  offset: 3,
}
Validation result
{
  success: false,
  issues: [{ path: [], message: 'Unrecognized key: "offset"' }],
}
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.