AddWeight adds i to the "weight" field.
(i int)
| 174 | |
| 175 | // AddWeight adds i to the "weight" field. |
| 176 | func (nu *NodeUpdate) AddWeight(i int) *NodeUpdate { |
| 177 | nu.mutation.AddWeight(i) |
| 178 | return nu |
| 179 | } |
| 180 | |
| 181 | // AddStoragePolicyIDs adds the "storage_policy" edge to the StoragePolicy entity by IDs. |
| 182 | func (nu *NodeUpdate) AddStoragePolicyIDs(ids ...int) *NodeUpdate { |