Query returns a query builder for AllowList.
()
| 571 | |
| 572 | // Query returns a query builder for AllowList. |
| 573 | func (c *AllowListClient) Query() *AllowListQuery { |
| 574 | return &AllowListQuery{ |
| 575 | config: c.config, |
| 576 | ctx: &QueryContext{Type: TypeAllowList}, |
| 577 | inters: c.Interceptors(), |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | // Get returns a AllowList entity by its id. |
| 582 | func (c *AllowListClient) Get(ctx context.Context, id int) (*AllowList, error) { |