Skip to content

BeechCMS


BeechCMS / @beechcms/client / ListQuery

Interface: ListQuery<TRow> ​

Type Parameters ​

TRow ​

TRow

Properties ​

fields? ​

optional fields?: (keyof TRow & string)[]


filter? ​

optional filter?: { [K in string | number | symbol]?: FieldFilter } & Record<string, FieldFilter>


include? ​

optional include?: string[]


lang? ​

optional lang?: string

Response language (?lang). The API falls back to Accept-Language, then the project default.


latest? ​

optional latest?: number


limit? ​

optional limit?: number


logic? ​

optional logic?: "AND" | "OR"


page? ​

optional page?: number


relationFilters? ​

optional relationFilters?: Record<string, RelationSubquery>

Relation alias → subquery. Encoded into the filter parameter as a nested in value.


optional search?: string


sort? ​

optional sort?: Partial<Record<keyof TRow & string, "asc" | "desc">>