GetX is like Get, but panics if an error occurs.
(ctx context.Context, id uuid.UUID)
| 3118 | |
| 3119 | // GetX is like Get, but panics if an error occurs. |
| 3120 | func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User { |
| 3121 | obj, err := c.Get(ctx, id) |
| 3122 | if err != nil { |
| 3123 | panic(err) |
| 3124 | } |
| 3125 | return obj |
| 3126 | } |
| 3127 | |
| 3128 | // QueryMemberships queries the memberships edge of a User. |
| 3129 | func (c *UserClient) QueryMemberships(_m *User) *MembershipQuery { |