removeGroupBy method
Removes a specific GROUP BY field from the query by comparing SQL output.
groupBy
The GROUP BY field to remove.
Returns this
to enable method chaining.
Example:
query.removeGroupBy(QField('category')); // Removes category from GROUP BY
Implementation
Sqler removeGroupBy(QField groupBy) {
_groupBy.removeWhere((e) => e.toSQL() == groupBy.toSQL());
return this;
}