Aggregate returns a UserSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 625 | |
| 626 | // Aggregate returns a UserSelect configured with the given aggregations. |
| 627 | func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect { |
| 628 | return uq.Select().Aggregate(fns...) |
| 629 | } |
| 630 | |
| 631 | func (uq *UserQuery) prepareQuery(ctx context.Context) error { |
| 632 | for _, inter := range uq.inters { |