-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQLError: Fixed originalError.extensions
overriding extensions
argument to constructor
#3343
GraphQLError: Fixed originalError.extensions
overriding extensions
argument to constructor
#3343
Conversation
|
f6329e9
to
ecfb8b5
Compare
ecfb8b5
to
463f075
Compare
Reference graphql-js/src/error/GraphQLError.js Line 130 in dcf3751
|
@yaacovCR @dotansimha @saihaj Thanks for timely review 👍 @klippx Fix itself is good, I just changed the test to be more in line with our test style.
Hope this feedback helps you with your future contributions. |
originalError.extensions
overriding extensions
argument to constructor
For future context, regression came from here: |
Thanks @IvanGoncharov, I agree that your review commit is a more elegant way of testing things. And I appreciate that you did the review comment for me! 🙏 🙇 |
When upgrading to latest version of graphql I discovered a regression:
We are enriching an existing graphql error and the implementation has changed in a way that is different between
^15.6.1
and15.x.x
This test runs fine on
v15.6.1
but needs the fix I provided to work on15.x.x