graphql-js
graphql-js copied to clipboard
fix: return correct originalError after normalize for deprecated GraphQLError
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
.