ListQuery
ListQuery =
object
Defined in: packages/schema/src/model.ts:242
One page of a list, as the query package reads it from the database.
Properties
Section titled “Properties”columns?
Section titled “columns?”
optionalcolumns?:string[]
Defined in: packages/schema/src/model.ts:248
The fields it reads, by name; every field when omitted.
cursor?
Section titled “cursor?”
optionalcursor?:string
Defined in: packages/schema/src/model.ts:250
Where the page starts: a cursor from a previous page.
direction?
Section titled “direction?”
optionaldirection?:"after"|"before"
Defined in: packages/schema/src/model.ts:252
Whether the page comes after the cursor (the default) or before it.
filter?
Section titled “filter?”
optionalfilter?:CheckedFilter
Defined in: packages/schema/src/model.ts:244
The rows it keeps, already checked against the resource.
limit:
number
Defined in: packages/schema/src/model.ts:254
The most rows the page holds.
optionalsort?:SortSpec
Defined in: packages/schema/src/model.ts:246
The order; the primary key decides ties.