Get returns a AllowListItem entity by its id.
(ctx context.Context, id int)
| 729 | |
| 730 | // Get returns a AllowListItem entity by its id. |
| 731 | func (c *AllowListItemClient) Get(ctx context.Context, id int) (*AllowListItem, error) { |
| 732 | return c.Query().Where(allowlistitem.ID(id)).Only(ctx) |
| 733 | } |
| 734 | |
| 735 | // GetX is like Get, but panics if an error occurs. |
| 736 | func (c *AllowListItemClient) GetX(ctx context.Context, id int) *AllowListItem { |