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(); 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",