diff --git a/apps/api/src/modules/async-job/async-job-graphql.module.ts b/apps/api/src/modules/async-job/async-job-graphql.module.ts index 3a9637a..b942395 100644 --- a/apps/api/src/modules/async-job/async-job-graphql.module.ts +++ b/apps/api/src/modules/async-job/async-job-graphql.module.ts @@ -4,17 +4,15 @@ import { AsyncJobResolver } from "./async-job.resolver"; import { TypedAsyncJobInterceptor } from "./typed-async-job.interceptor"; /** - * GraphQL surface for AsyncJob. The data layer (entity, mapper, policy, - * service) lives in `@cv/core` as `AsyncJobModule`; this module is the - * api-only wiring for the `asyncJob` query and the bundle interceptor. - * - * Consumers needing the data layer (e.g. resolvers using the bundle in - * other feature modules) should import both this module (for the - * interceptor) AND `AsyncJobModule` from `@cv/core` directly. + * GraphQL surface for AsyncJob. The data layer (`AsyncJobModule` in + * `@cv/core`) is re-exported because `TypedAsyncJobInterceptor`'s + * `AsyncJobService` dep is resolved in the consumer's module scope, not + * here — without the re-export every feature module using the bundle has + * to import both modules explicitly. */ @Module({ imports: [AsyncJobModule], providers: [AsyncJobResolver, TypedAsyncJobInterceptor], - exports: [TypedAsyncJobInterceptor], + exports: [TypedAsyncJobInterceptor, AsyncJobModule], }) export class AsyncJobGraphQLModule {}