Aggregate returns a GroupSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 378 | |
| 379 | // Aggregate returns a GroupSelect configured with the given aggregations. |
| 380 | func (_q *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect { |
| 381 | return _q.Select().Aggregate(fns...) |
| 382 | } |
| 383 | |
| 384 | func (_q *GroupQuery) prepareQuery(ctx context.Context) error { |
| 385 | for _, inter := range _q.inters { |