mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: apply field selection on builer types (#1094)
This commit is contained in:
@@ -355,6 +355,9 @@ func (uq *UserQuery) querySpec() *sqlgraph.QuerySpec {
|
||||
From: uq.sql,
|
||||
Unique: true,
|
||||
}
|
||||
if fields := uq.fields; len(fields) > 0 {
|
||||
_spec.Node.Columns = fields
|
||||
}
|
||||
if ps := uq.predicates; len(ps) > 0 {
|
||||
_spec.Predicate = func(selector *sql.Selector) {
|
||||
for i := range ps {
|
||||
|
||||
Reference in New Issue
Block a user