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

Method IDs

ent/nodeversion_query.go:258–267  ·  view source on GitHub ↗

IDs executes the query and returns a list of NodeVersion IDs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

256
257// IDs executes the query and returns a list of NodeVersion IDs.
258func (nvq *NodeVersionQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) {
259 if nvq.ctx.Unique == nil && nvq.path != nil {
260 nvq.Unique(true)
261 }
262 ctx = setContextOp(ctx, nvq.ctx, ent.OpQueryIDs)
263 if err = nvq.Select(nodeversion.FieldID).Scan(ctx, &ids); err != nil {
264 return nil, err
265 }
266 return ids, nil
267}
268
269// IDsX is like IDs, but panics if an error occurs.
270func (nvq *NodeVersionQuery) IDsX(ctx context.Context) []uuid.UUID {

Callers 3

IDsXMethod · 0.95
FirstIDMethod · 0.45
OnlyIDMethod · 0.45

Calls 4

UniqueMethod · 0.95
SelectMethod · 0.95
setContextOpFunction · 0.85
ScanMethod · 0.45

Tested by

no test coverage detected