From 6fbd47c2ef14a6ae4297ffe0aaa689eeb3741ed0 Mon Sep 17 00:00:00 2001 From: enisdenjo Date: Fri, 18 Sep 2020 20:28:14 +0200 Subject: [PATCH] fix(server): Use `subscribe` from the config --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index c7e6844f..22966933 100644 --- a/src/server.ts +++ b/src/server.ts @@ -15,7 +15,6 @@ import { parse, validate, getOperationAST, - subscribe, GraphQLError, SubscriptionArgs, } from 'graphql'; @@ -216,6 +215,7 @@ export function createServer( schema, roots, execute, + subscribe, onConnect, connectionInitWaitTimeout = 3 * 1000, // 3 seconds validationRules,