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(