aggregate<A>(params: A, args?: AggregatePostProcessing<T, A>): Promise<Expand<keyof A["by"] extends never ? {[ K in string | number | symbol]: A["aggregations"][K]["operation"] extends "count" ? number : null | number} : ({[ K in string | number | symbol]: K extends string ? TypeTraversal<T["insert"], K> : K extends keyof T["insert"] ? T["insert"][K] : never} & {[ K in string | number | symbol]: A["aggregations"][K]["operation"] extends "count" ? number : null | number})[]>>
Returns Promise<Expand<keyof A["by"] extends never ? {[ K in string | number | symbol]: A["aggregations"][K]["operation"] extends "count" ? number : null | number} : ({[ K in string | number | symbol]: K extends string ? TypeTraversal<T["insert"], K> : K extends keyof T["insert"] ? T["insert"][K] : never} & {[ K in string | number | symbol]: A["aggregations"][K]["operation"] extends "count" ? number : null | number})[]>>