Get returns a User entity by its id.
(ctx context.Context, id uuid.UUID)
| 3113 | |
| 3114 | // Get returns a User entity by its id. |
| 3115 | func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error) { |
| 3116 | return c.Query().Where(user.ID(id)).Only(ctx) |
| 3117 | } |
| 3118 | |
| 3119 | // GetX is like Get, but panics if an error occurs. |
| 3120 | func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User { |