ReportSpecInput
input type
The whole report spec: the plan (the SearchPlanInput grammar verbatim — its defaults apply, its limit bounds a projection's rows on the synchronous lane), then exactly one of columns (1..24 — a projection) / groupBy (1..4 — an aggregate); measures (up to 8) ride only with groupBy; an optional sort. Everything validates against the terminal family's roster before anything runs; a JSON null on an optional field reads as absent.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
plan | SearchPlanInput SearchPlanInput! | yes | The whole plan: the start step, zero to 3 hops in order, and the answer's ceiling (limit 1..200; absent = 100). |
columns | String [String!] | no | |
groupBy | ReportGroupKeyInput [ReportGroupKeyInput!] | no | One group key: a roster field of the terminal family of kind enum · reference · text · flag · date; bucket is required on a date field and forbidden on every other kind. |
measures | ReportMeasureInput [ReportMeasureInput!] | no | One measure: count alone (no field — and it is always present whether named or not), or sum · min · max · avg over ONE money or number field (field required for those four). |
sort | ReportSortInput | no | The report's sort — over an output column name (totalMinor.sum, createdAt.month, count, a projected field, …), never a raw roster field; the direction is the contracts SORT_DIRECTIONS vocabulary |