Skip to content

Commit 35bc6a5

Browse files
committed
refactor: remove null from executeOperation return type
not actually possible!
1 parent 7f57e6d commit 35bc6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execution/execute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export function buildExecutionContext(
347347
function executeOperation(
348348
exeContext: ExecutionContext,
349349
operation: OperationDefinitionNode,
350-
): PromiseOrValue<ObjMap<unknown> | null> {
350+
): PromiseOrValue<ObjMap<unknown>> {
351351
const rootType = exeContext.schema.getRootType(operation.operation);
352352
if (rootType == null) {
353353
throw new GraphQLError(

0 commit comments

Comments
 (0)