entc/gen: update mutation-id on post mutation

This commit is contained in:
Ariel Mashraki
2021-05-31 20:18:55 +03:00
committed by Ariel Mashraki
parent ca7aa4b742
commit 11567a3926
131 changed files with 408 additions and 202 deletions

View File

@@ -120,6 +120,7 @@ func ({{ $receiver }} *{{ $builder }}) Save(ctx context.Context) ([]*{{ $.Name }
}
}
}
mutation.{{ $.ID.BuilderField }} = &nodes[i].{{ $.ID.StructField }}
mutation.done = true
if err != nil {
return nil, err