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

Method SetStorageFile

ent/nodeversion_create.go:195–197  ·  view source on GitHub ↗

SetStorageFile sets the "storage_file" edge to the StorageFile entity.

(s *StorageFile)

Source from the content-addressed store, hash-verified

193
194// SetStorageFile sets the "storage_file" edge to the StorageFile entity.
195func (nvc *NodeVersionCreate) SetStorageFile(s *StorageFile) *NodeVersionCreate {
196 return nvc.SetStorageFileID(s.ID)
197}
198
199// AddComfyNodeIDs adds the "comfy_nodes" edge to the ComfyNode entity by IDs.
200func (nvc *NodeVersionCreate) AddComfyNodeIDs(ids ...uuid.UUID) *NodeVersionCreate {

Callers 1

CreateNodeVersionMethod · 0.45

Calls 1

SetStorageFileIDMethod · 0.95

Tested by

no test coverage detected