groupBy method
Sets the GROUP BY fields for the query.
groupBy
List of field names to group by.
Returns this
to enable method chaining.
Note: This replaces any existing GROUP BY fields.
Example:
query.groupBy(['category', 'status']); // GROUP BY category, status
Implementation
Sqler groupBy(List<String> groupBy) {
_groupBy = groupBy.map((e) => QField(e)).toList();
return this;
}