Aggregate returns a EntitySelect configured with the given aggregations.
(fns ...AggregateFunc)
| 409 | |
| 410 | // Aggregate returns a EntitySelect configured with the given aggregations. |
| 411 | func (eq *EntityQuery) Aggregate(fns ...AggregateFunc) *EntitySelect { |
| 412 | return eq.Select().Aggregate(fns...) |
| 413 | } |
| 414 | |
| 415 | func (eq *EntityQuery) prepareQuery(ctx context.Context) error { |
| 416 | for _, inter := range eq.inters { |