Skip to main content

validateAggregation

@webda/ql


Function: validateAggregation()

validateAggregation(query): AggregationQuery

Defined in: packages/ql/src/aggregation-query.ts:135

Validate an aggregation query

Paths and aliases that pass are safe to interpolate in native queries. Path segments cannot be all digits (array indexes are not portable). A missing groupBy is normalized to [].

Parameters​

query​

AggregationQuery

the query to validate

Returns​

AggregationQuery

the same query

Throws​

WebdaQLError when the query is invalid