(ctx context.Context, q *ent.TaskQuery)
| 330 | } |
| 331 | |
| 332 | func withTaskEagerLoading(ctx context.Context, q *ent.TaskQuery) *ent.TaskQuery { |
| 333 | if v, ok := ctx.Value(LoadTaskUser{}).(bool); ok && v { |
| 334 | q.WithUser(func(q *ent.UserQuery) { |
| 335 | withUserEagerLoading(ctx, q) |
| 336 | }) |
| 337 | } |
| 338 | |
| 339 | return q |
| 340 | } |
no test coverage detected