AddWeight adds i to the "weight" field.
(i int)
| 541 | |
| 542 | // AddWeight adds i to the "weight" field. |
| 543 | func (nuo *NodeUpdateOne) AddWeight(i int) *NodeUpdateOne { |
| 544 | nuo.mutation.AddWeight(i) |
| 545 | return nuo |
| 546 | } |
| 547 | |
| 548 | // AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs. |
| 549 | func (nuo *NodeUpdateOne) AddStoragePolicyIDs(ids ...int) *NodeUpdateOne { |