groupBy method

Self groupBy(
  1. Iterable<Expression<Object>> expressions, {
  2. Expression<bool>? having,
})

Groups the result by values in expressions.

An optional having attribute can be set to exclude certain groups.

Implementation

Self groupBy(Iterable<Expression> expressions, {Expression<bool>? having}) {
  groupByClause = GroupBy(expressions.toList(), having: having);
  return _asSelf();
}