Type alias GroupByReturn<T, V>

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

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

Type Parameters

  • T
  • V

Type declaration

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

    The groups that were created by the query.

  • objects: GroupByObject<T, V>[]

    The objects that were found by the query.