GetX is like Get, but panics if an error occurs.
(ctx context.Context, id int)
| 1497 | |
| 1498 | // GetX is like Get, but panics if an error occurs. |
| 1499 | func (c *MetadataClient) GetX(ctx context.Context, id int) *Metadata { |
| 1500 | obj, err := c.Get(ctx, id) |
| 1501 | if err != nil { |
| 1502 | panic(err) |
| 1503 | } |
| 1504 | return obj |
| 1505 | } |
| 1506 | |
| 1507 | // QueryFile queries the file edge of a Metadata. |
| 1508 | func (c *MetadataClient) QueryFile(m *Metadata) *FileQuery { |