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

Method IDs

ent/node_query.go:256–265  ·  view source on GitHub ↗

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

(ctx context.Context)

Source from the content-addressed store, hash-verified

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

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