Skip to content

Commit eccd411

Browse files
committed
refactor: remove null from executeOperation return type
not actually possible!
1 parent 02145ff commit eccd411

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
@@ -353,7 +353,7 @@ export function buildExecutionContext(
353353
function executeOperation(
354354
exeContext: ExecutionContext,
355355
operation: OperationDefinitionNode,
356-
): PromiseOrValue<ObjMap<unknown> | null> {
356+
): PromiseOrValue<ObjMap<unknown>> {
357357
const rootType = exeContext.schema.getRootType(operation.operation);
358358
if (rootType == null) {
359359
throw new GraphQLError(

0 commit comments

Comments
 (0)