We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When the server returns an error response, the response headers are added to the ClientError in rawRequest:
ClientError
rawRequest
https://github.com/prisma-labs/graphql-request/blob/5b233c5658e65ed0d98cf8bff50beec413f399b9/src/index.ts#L71-L73
However, these headers are not added in request:
request
https://github.com/prisma-labs/graphql-request/blob/5b233c5658e65ed0d98cf8bff50beec413f399b9/src/index.ts#L104
In my application, I need to respond to errors differently based on the response headers, but I'd prefer not to use rawRequest.
The text was updated successfully, but these errors were encountered:
fix: include headers in ClientError response (graffle-js#245)
4965135
2ea15ac
c510e3a
fix: include headers in ClientError response (#245) (#246)
a8d99f5
Successfully merging a pull request may close this issue.
When the server returns an error response, the response headers are added to the
ClientError
inrawRequest
:https://github.com/prisma-labs/graphql-request/blob/5b233c5658e65ed0d98cf8bff50beec413f399b9/src/index.ts#L71-L73
However, these headers are not added in
request
:https://github.com/prisma-labs/graphql-request/blob/5b233c5658e65ed0d98cf8bff50beec413f399b9/src/index.ts#L104
In my application, I need to respond to errors differently based on the response headers, but I'd prefer not to use
rawRequest
.The text was updated successfully, but these errors were encountered: