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