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

Method SetNode

ent/nodeversion_create.go:176–178  ·  view source on GitHub ↗

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

(n *Node)

Source from the content-addressed store, hash-verified

174
175// SetNode sets the "node" edge to the Node entity.
176func (nvc *NodeVersionCreate) SetNode(n *Node) *NodeVersionCreate {
177 return nvc.SetNodeID(n.ID)
178}
179
180// SetStorageFileID sets the "storage_file" edge to the StorageFile entity by ID.
181func (nvc *NodeVersionCreate) SetStorageFileID(id uuid.UUID) *NodeVersionCreate {

Callers

nothing calls this directly

Calls 1

SetNodeIDMethod · 0.95

Tested by

no test coverage detected