code: func (query Query) Aggregate(mode string, field string, out interface{}) error {
  	query.AggregateMode = mode
  	query.AggregateField = field
  	return query.repo.adapter.Aggregate(query, out, query.repo.logger...)
  }
docs: // Aggregate calculate aggregate over the given field.