Aggregate returns a ShareSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 373 | |
| 374 | // Aggregate returns a ShareSelect configured with the given aggregations. |
| 375 | func (sq *ShareQuery) Aggregate(fns ...AggregateFunc) *ShareSelect { |
| 376 | return sq.Select().Aggregate(fns...) |
| 377 | } |
| 378 | |
| 379 | func (sq *ShareQuery) prepareQuery(ctx context.Context) error { |
| 380 | for _, inter := range sq.inters { |