graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

fix: return correct originalError after normalize for deprecated GraphQLError

Open marko-zub opened this issue 2 years ago • 6 comments

In graphql-js v16 property becomes nested error.originalError.originalError in toNormalizedOptions, but should be just error.originalError.

Added condition to check if error instance of GraphQLError then just return args[4].originalError.

Issue happens in executeFieldsSerially.

marko-zub avatar Dec 22 '22 16:12 marko-zub