SetWeight sets the "weight" field.
(i int)
| 159 | |
| 160 | // SetWeight sets the "weight" field. |
| 161 | func (nu *NodeUpdate) SetWeight(i int) *NodeUpdate { |
| 162 | nu.mutation.ResetWeight() |
| 163 | nu.mutation.SetWeight(i) |
| 164 | return nu |
| 165 | } |
| 166 | |
| 167 | // SetNillableWeight sets the "weight" field if the given value is not nil. |
| 168 | func (nu *NodeUpdate) SetNillableWeight(i *int) *NodeUpdate { |
no test coverage detected