egon-orm-workspace / egon-orm / arrayAgg
Function: arrayAgg() ​
ts
function arrayAgg<X>(expr): Aggregate<ValueOf<X>[] | null, ParamsOf<X>>;Defined in: core/src/query/functions.ts:516
array_agg(x): the values as an array; null over no rows.
Type Parameters ​
X ​
X extends Expr<unknown, never>
Parameters ​
expr ​
X
Returns ​
Aggregate<ValueOf<X>[] | null, ParamsOf<X>>
Example ​
ts
arrayAgg(p.title);Throws ​
QueryError when the argument is not an expression.

