Aggregate returns a NodeSelect configured with the given aggregations.
(fns ...AggregateFunc)
| 413 | |
| 414 | // Aggregate returns a NodeSelect configured with the given aggregations. |
| 415 | func (nq *NodeQuery) Aggregate(fns ...AggregateFunc) *NodeSelect { |
| 416 | return nq.Select().Aggregate(fns...) |
| 417 | } |
| 418 | |
| 419 | func (nq *NodeQuery) prepareQuery(ctx context.Context) error { |
| 420 | for _, inter := range nq.inters { |