groupBy method

void groupBy (List<Field> fields)

Group a select query by a list of Fields

Implementation

void groupBy(List<Field> fields) {
  if (_groupByClause != null) {
    throw StanzaException(
        'Cannot have more than one group by clause in a query.');
  }
  _groupByClause = GroupByClause(fields);
}