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