(ctx context.Context, ids []int)
| 61 | } |
| 62 | |
| 63 | func (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 | |
| 67 | func (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) |
nothing calls this directly
no test coverage detected