Aggregate adds the given aggregation functions to the group-by query.
(fns ...AggregateFunc)
| 522 | |
| 523 | // Aggregate adds the given aggregation functions to the group-by query. |
| 524 | func (ngb *NodeGroupBy) Aggregate(fns ...AggregateFunc) *NodeGroupBy { |
| 525 | ngb.fns = append(ngb.fns, fns...) |
| 526 | return ngb |
| 527 | } |
| 528 | |
| 529 | // Scan applies the selector query and scans the result into the given value. |
| 530 | func (ngb *NodeGroupBy) Scan(ctx context.Context, v any) error { |
nothing calls this directly
no outgoing calls
no test coverage detected