having method

Query<R, F> having(
  1. Expr<bool?> condition(
    1. F
    )
)

Adds an aggregate filter with AND to the existing HAVING clause.

Implementation

Query<R, F> having(Expr<bool?> Function(F) condition) {
  final next = condition(queryFields);
  return copyQuery(
    queryState.copy(having: allOf([?queryState.having, next])),
  );
}