func Min(field Field) aggregate.AggFunc {
	return func(aggs []*aggregate.Aggregate) []*aggregate.Aggregate {
		return append(aggs, &aggregate.Aggregate{
			Field: field.String(),
			Op:    aggregate.Min,
		})
	}
}
Min is the min aggregate operator
package playerrepo
import (
	"github.com/sf9v/nero/aggregate"
)
func Avg(field Field) aggregate.AggFunc {
	return func(aggs []*aggregate.Aggregate) []*aggregate.Aggregate {
		return append(aggs, &aggregate.Aggregate{
			Field: field.String(),
			Op:    aggregate.Avg,
		})
	}
}
func Count(field Field) aggregate.AggFunc {
	return func(aggs []*aggregate.Aggregate) []*aggregate.Aggregate {
		return append(aggs, &aggregate.Aggregate{
			Field: field.String(),
			Op:    aggregate.Count,
		})
	}
}
func Max(field Field) aggregate.AggFunc {
	return func(aggs []*aggregate.Aggregate) []*aggregate.Aggregate {
		return append(aggs, &aggregate.Aggregate{
			Field: field.String(),
			Op:    aggregate.Max,
		})
	}
}