Hi,
Is it possible to use nestjs-dataloader with something like below?
@Resolver(() => AccountDto)
export class AccountFieldResolver {
constructor(private queryBus: QueryBus) {}
@ResolveField(() => [AccountDto], { name: 'account' })
async resolveCompanyAbsences(
@Args('input') { id }: AccountKey,
@Loader(CompanyEmployeeAbsenceLoader) accountLoader: DataLoader<AccountKey, Account>,
) {
return accountLoader.load({ id });
}
Seems that the interceptor is not being initialized and it fails with error
You should provide interceptor ${DataLoaderInterceptor.name} globally with ${APP_INTERCEPTOR}
Hi,
Is it possible to use
nestjs-dataloaderwith something like below?Seems that the interceptor is not being initialized and it fails with error
You should provide interceptor ${DataLoaderInterceptor.name} globally with ${APP_INTERCEPTOR}