mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: make generated client to implement the ent.Mutator interface (#3161)
This commit is contained in:
@@ -1044,7 +1044,7 @@ func (f Field) EntSQL() *entsql.Annotation {
|
||||
|
||||
// mutMethods returns the method names of mutation interface.
|
||||
var mutMethods = func() map[string]bool {
|
||||
names := map[string]bool{"Client": true, "Tx": true, "Where": true}
|
||||
names := map[string]bool{"Client": true, "Tx": true, "Where": true, "SetOp": true}
|
||||
t := reflect.TypeOf(new(ent.Mutation)).Elem()
|
||||
for i := 0; i < t.NumMethod(); i++ {
|
||||
names[t.Method(i).Name] = true
|
||||
|
||||
Reference in New Issue
Block a user