From 15dafb8370bdd4134124d59ea4be92adeff1867c Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Sun, 12 Jun 2022 23:06:12 +0300 Subject: [PATCH] refactor: remove null from executeOperation return type not actually possible! --- src/execution/execute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execution/execute.ts b/src/execution/execute.ts index a310e3869e..b66b434300 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -347,7 +347,7 @@ export function buildExecutionContext( function executeOperation( exeContext: ExecutionContext, operation: OperationDefinitionNode, -): PromiseOrValue | null> { +): PromiseOrValue> { const rootType = exeContext.schema.getRootType(operation.operation); if (rootType == null) { throw new GraphQLError(