SetWeight sets the "weight" field.
(i int)
| 526 | |
| 527 | // SetWeight sets the "weight" field. |
| 528 | func (nuo *NodeUpdateOne) SetWeight(i int) *NodeUpdateOne { |
| 529 | nuo.mutation.ResetWeight() |
| 530 | nuo.mutation.SetWeight(i) |
| 531 | return nuo |
| 532 | } |
| 533 | |
| 534 | // SetNillableWeight sets the "weight" field if the given value is not nil. |
| 535 | func (nuo *NodeUpdateOne) SetNillableWeight(i *int) *NodeUpdateOne { |
no test coverage detected