MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetNode

Method SetNode

ent/nodeversion_update.go:181–183  ·  view source on GitHub ↗

SetNode sets the "node" edge to the Node entity.

(n *Node)

Source from the content-addressed store, hash-verified

179
180// SetNode sets the "node" edge to the Node entity.
181func (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.
186func (nvu *NodeVersionUpdate) SetStorageFileID(id uuid.UUID) *NodeVersionUpdate {

Callers

nothing calls this directly

Calls 1

SetNodeIDMethod · 0.95

Tested by

no test coverage detected