Type Alias QueryPlan
type QueryPlan = {
from: string[];
group?: { aggregates: Record<string, PlanAggregate>; by: string[] };
join?: PlanJoin[];
limit: number;
pageSize: number;
sort?: string[];
where?: PlanCondition[];
}
from: string[];
group?: { aggregates: Record<string, PlanAggregate>; by: string[] };
join?: PlanJoin[];
limit: number;
pageSize: number;
sort?: string[];
where?: PlanCondition[];
}
Properties
from
from: string[]
base fields the plan may read; the output row carries exactly these
Optionalgroup
Optionaljoin
limit
limit: number
most result rows (groups or joined rows) the plan answers locally
page Size
pageSize: number
Optionalsort
sort?: string[]
fields the sort parameter may name; a leading minus in the URL sorts descending
Optionalwhere
conditions, all ANDed; a condition whose parameter is absent is skipped
a read-only query over held datasets, declared on a route and written in JSON