Type Alias QuerySchema
type QuerySchema = {
dataset?: string;
filter?: Record<string, QueryFilterType>;
key?: string;
list: string;
pageSize?: number;
plan?: QueryPlan;
sort?: readonly string[];
}
dataset?: string;
filter?: Record<string, QueryFilterType>;
key?: string;
list: string;
pageSize?: number;
plan?: QueryPlan;
sort?: readonly string[];
}
Properties
Optionaldataset
dataset?: string
Name of a dataset the device holds. The rows it holds are the collection, in ascending key
order, so the route's data carries no list and no proof. Exclusive with key.
Optionalfilter
parameters that filter items, by field name, with how each is read
Optionalkey
key?: string
field of each item that holds its dataset key; a list with a set proof needs it
list
list: string
key of the loaded data that holds the collection
Optionalpage Size
pageSize?: number
items per page; turns on the page parameter
Optionalplan
A read-only plan over the held dataset: joins, conditions, groups and aggregates. Requires
dataset; list names the key the result rows go under. See QueryPlan.
Optionalsort
sort?: readonly string[]
fields the sort parameter may name; a leading minus reverses the order
The query strings a public route answers from the collection it holds.
listnames the key of the loaded data that holds the whole collection, an array of flat objects. A parameter named infilterkeeps the items whose field of the same name equals it, and a repeated one matches any of its values.sortlists the fields thesortparameter may name (-namesorts descending), andpageSizeturns on the 1-basedpageparameter.