We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ddf251 commit 75559baCopy full SHA for 75559ba
src/core/exception/exception.normalizer.ts
@@ -127,7 +127,10 @@ export class ExceptionNormalizer {
127
}
128
129
const gqlContext =
130
- context && context.getType<ContextKey>() === 'graphql'
+ context &&
131
+ context.getType<ContextKey>() === 'graphql' &&
132
+ // schema input validation errors don't create an execution context correctly
133
+ !(ex instanceof GraphQLError)
134
? GqlExecutionContext.create(context as any)
135
: undefined;
136
0 commit comments