mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: minor codegen improvements
This commit is contained in:
committed by
Ariel Mashraki
parent
e915765f3b
commit
ab207c499a
@@ -43,9 +43,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlQuery() *sql.Selector {
|
||||
for _, f := range {{ $receiver }}.fields {
|
||||
columns = append(columns, selector.C(f))
|
||||
}
|
||||
for _, c := range aggregation {
|
||||
columns = append(columns, c)
|
||||
}
|
||||
columns = append(columns, aggregation...)
|
||||
selector.Select(columns...)
|
||||
}
|
||||
return selector.GroupBy(selector.Columns({{ $receiver }}.fields...)...)
|
||||
|
||||
Reference in New Issue
Block a user