Get returns a Node entity by its id.
(ctx context.Context, id int)
| 1643 | |
| 1644 | // Get returns a Node entity by its id. |
| 1645 | func (c *NodeClient) Get(ctx context.Context, id int) (*Node, error) { |
| 1646 | return c.Query().Where(node.ID(id)).Only(ctx) |
| 1647 | } |
| 1648 | |
| 1649 | // GetX is like Get, but panics if an error occurs. |
| 1650 | func (c *NodeClient) GetX(ctx context.Context, id int) *Node { |