Aggregate returns a FileSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 587 | |
| 588 | // Aggregate returns a FileSelect configured with the given aggregations. |
| 589 | func (fq *FileQuery) Aggregate(fns ...AggregateFunc) *FileSelect { |
| 590 | return fq.Select().Aggregate(fns...) |
| 591 | } |
| 592 | |
| 593 | func (fq *FileQuery) prepareQuery(ctx context.Context) error { |
| 594 | for _, inter := range fq.inters { |