(ctx context.Context, id int)
| 65 | } |
| 66 | |
| 67 | func (c *groupClient) CountUsers(ctx context.Context, id int) (int, error) { |
| 68 | return c.client.Group.Query().Where(group.ID(id)).QueryUsers().Count(ctx) |
| 69 | } |
| 70 | |
| 71 | func (c *groupClient) AnonymousGroup(ctx context.Context) (*ent.Group, error) { |
| 72 | return withGroupEagerLoading(ctx, c.client.Group.Query().Where(group.ID(AnonymousGroupID))).First(ctx) |
nothing calls this directly
no test coverage detected