Exec executes the query.
(ctx context.Context)
| 767 | |
| 768 | // Exec executes the query. |
| 769 | func (u *NodeUpsertOne) Exec(ctx context.Context) error { |
| 770 | if len(u.create.conflict) == 0 { |
| 771 | return errors.New("ent: missing options for NodeCreate.OnConflict") |
| 772 | } |
| 773 | return u.create.Exec(ctx) |
| 774 | } |
| 775 | |
| 776 | // ExecX is like Exec, but panics if an error occurs. |
| 777 | func (u *NodeUpsertOne) ExecX(ctx context.Context) { |