Skip to content

Commit

Permalink
refactor: remove null from executeOperation return type
Browse files Browse the repository at this point in the history
not actually possible!
  • Loading branch information
yaacovCR committed Jun 12, 2022
1 parent 3a17407 commit 15dafb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export function buildExecutionContext(
function executeOperation(
exeContext: ExecutionContext,
operation: OperationDefinitionNode,
): PromiseOrValue<ObjMap<unknown> | null> {
): PromiseOrValue<ObjMap<unknown>> {
const rootType = exeContext.schema.getRootType(operation.operation);
if (rootType == null) {
throw new GraphQLError(
Expand Down

0 comments on commit 15dafb8

Please sign in to comment.