AlmondTill/G3N API

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

FieldTypeRequiredNotes
planSearchPlanInput SearchPlanInput!yesThe whole plan: the start step, zero to 3 hops in order, and the answer's ceiling (limit 1..200; absent = 100).
columnsString [String!]no
groupByReportGroupKeyInput [ReportGroupKeyInput!]noOne 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.
measuresReportMeasureInput [ReportMeasureInput!]noOne 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).
sortReportSortInputnoThe 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

Used by