From e71ac47d5f925408c9655f25d94791e0ecc73aa7 Mon Sep 17 00:00:00 2001 From: jonapgartwohat <72041252+jonapgartwohat@users.noreply.github.com> Date: Fri, 22 Oct 2021 13:16:50 -0400 Subject: [PATCH 1/2] support nestjs v8 NestInterceptor interface --- index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 5039c364..290ae437 100644 --- a/index.ts +++ b/index.ts @@ -9,7 +9,6 @@ import { import { APP_INTERCEPTOR, ModuleRef, ContextIdFactory } from '@nestjs/core'; import { GqlExecutionContext } from '@nestjs/graphql'; import * as DataLoader from 'dataloader'; -import { Observable } from 'rxjs'; import { idText } from 'typescript'; /** @@ -39,7 +38,7 @@ export class DataLoaderInterceptor implements NestInterceptor { /** * @inheritdoc */ - intercept(context: ExecutionContext, next: CallHandler): Observable { + intercept(context: ExecutionContext, next: CallHandler) { const graphqlExecutionContext = GqlExecutionContext.create(context); const ctx = graphqlExecutionContext.getContext(); From e3d59c91cff1379e034bd1297b7ea0c43a6ae0c9 Mon Sep 17 00:00:00 2001 From: jonapgartwohat <72041252+jonapgartwohat@users.noreply.github.com> Date: Fri, 22 Oct 2021 13:18:37 -0400 Subject: [PATCH 2/2] rm rxjs dep --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index aaf83818..42a84773 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ "reflect-metadata": "^0.1.12" }, "dependencies": { - "dataloader": "^2.0.0", - "rxjs": "^6.5.4" + "dataloader": "^2.0.0" }, "devDependencies": { "@nestjs/cli": "^7.1.2",