SetNode sets the "node" edge to the Node entity.
(n *Node)
| 179 | |
| 180 | // SetNode sets the "node" edge to the Node entity. |
| 181 | func (nvu *NodeVersionUpdate) SetNode(n *Node) *NodeVersionUpdate { |
| 182 | return nvu.SetNodeID(n.ID) |
| 183 | } |
| 184 | |
| 185 | // SetStorageFileID sets the "storage_file" edge to the StorageFile entity by ID. |
| 186 | func (nvu *NodeVersionUpdate) SetStorageFileID(id uuid.UUID) *NodeVersionUpdate { |