SetNillableWeight sets the "weight" field if the given value is not nil.
(i *int)
| 533 | |
| 534 | // SetNillableWeight sets the "weight" field if the given value is not nil. |
| 535 | func (nuo *NodeUpdateOne) SetNillableWeight(i *int) *NodeUpdateOne { |
| 536 | if i != nil { |
| 537 | nuo.SetWeight(*i) |
| 538 | } |
| 539 | return nuo |
| 540 | } |
| 541 | |
| 542 | // AddWeight adds i to the "weight" field. |
| 543 | func (nuo *NodeUpdateOne) AddWeight(i int) *NodeUpdateOne { |