MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / GetNodeByIds

Method GetNodeByIds

inventory/node.go:63–65  ·  view source on GitHub ↗
(ctx context.Context, ids []int)

Source from the content-addressed store, hash-verified

61}
62
63func (c *nodeClient) GetNodeByIds(ctx context.Context, ids []int) ([]*ent.Node, error) {
64 return withNodeEagerLoading(ctx, c.client.Node.Query().Where(node.IDIn(ids...))).All(ctx)
65}
66
67func (c *nodeClient) GetNodeById(ctx context.Context, id int) (*ent.Node, error) {
68 return withNodeEagerLoading(ctx, c.client.Node.Query().Where(node.IDEQ(id))).First(ctx)

Callers

nothing calls this directly

Calls 5

IDInFunction · 0.92
withNodeEagerLoadingFunction · 0.85
AllMethod · 0.45
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected