GetX is like Get, but panics if an error occurs.
(ctx context.Context, id uuid.UUID)
| 797 | |
| 798 | // GetX is like Get, but panics if an error occurs. |
| 799 | func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend { |
| 800 | obj, err := c.Get(ctx, id) |
| 801 | if err != nil { |
| 802 | panic(err) |
| 803 | } |
| 804 | return obj |
| 805 | } |
| 806 | |
| 807 | // QueryOrganization queries the organization edge of a CASBackend. |
| 808 | func (c *CASBackendClient) QueryOrganization(_m *CASBackend) *OrganizationQuery { |