Type alias GroupByReturn<T>

GroupByReturn<T>: {
    groups: Record<string, GroupByResult<T>>;
    objects: GroupByObject<T>[];
}

The return of a query method in the collection.query namespace where the groupBy argument was specified.

Type Parameters

  • T

Type declaration

  • groups: Record<string, GroupByResult<T>>

    The groups that were created by the query.

  • objects: GroupByObject<T>[]

    The objects that were found by the query.