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

Method OnlyIDX

ent/nodeversion_query.go:230–236  ·  view source on GitHub ↗

OnlyIDX is like OnlyID, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

228
229// OnlyIDX is like OnlyID, but panics if an error occurs.
230func (nvq *NodeVersionQuery) OnlyIDX(ctx context.Context) uuid.UUID {
231 id, err := nvq.OnlyID(ctx)
232 if err != nil {
233 panic(err)
234 }
235 return id
236}
237
238// All executes the query and returns a list of NodeVersions.
239func (nvq *NodeVersionQuery) All(ctx context.Context) ([]*NodeVersion, error) {

Callers

nothing calls this directly

Calls 1

OnlyIDMethod · 0.95

Tested by

no test coverage detected