(ctx context.Context, id int)
| 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) |
| 69 | } |
| 70 | |
| 71 | func (c *nodeClient) Delete(ctx context.Context, id int) error { |
| 72 | return c.client.Node.DeleteOneID(id).Exec(ctx) |
nothing calls this directly
no test coverage detected