graphql-yoga
graphql-yoga copied to clipboard
`handleError` incorrectly sets `extensions.http.unexpected` instead of `extensions.unexpected`
Describe the bug
This is done in only one place and is obviously unintended:
https://github.com/graphql-hive/graphql-yoga/blob/c3e7fddc8ae49da50263ac74fa9e6f0814f70c34/packages/graphql-yoga/src/error.ts#L98-L116
Your Example Website or App
https://localhost
Steps to Reproduce the Bug or Issue
- Go to above link
Expected behavior
It sets the correct extension property in that fallback case.
Screenshots or Videos
No response
Platform
- GitHub
Additional context
No response
Thanks for creating the issue! PRs are welcome for the fix!