Aggregate returns a TaskSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 336 | |
| 337 | // Aggregate returns a TaskSelect configured with the given aggregations. |
| 338 | func (tq *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect { |
| 339 | return tq.Select().Aggregate(fns...) |
| 340 | } |
| 341 | |
| 342 | func (tq *TaskQuery) prepareQuery(ctx context.Context) error { |
| 343 | for _, inter := range tq.inters { |