This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
graphql-helix@1.11.0
·
31 commits
to main
since this release
Minor Changes
-
f07a403: Adjust the handling of the
accept
header.- Clients accepting the
application/graphql+json
header (via theaccept
header) will receive responses that useContent-Type: application/graphql+json
overapplication/json
(which is only for supporting legacy clients).
Clients that do not specify anyaccept
headers will still receivecontent-type: application/json
. This is not considered a breaking change as clients accepting theapplication/graphql+json
header should also be able to process it.
Note: When using theapplication/graphql+json
content-type header you need to configure your HTTP server/framework to parse this content-type as JSON. - GET
text/event-stream
requests will now ALWAYS return aPushResponse
instead of aMultipartResponse
. Previously helix would send aMultipartResponse
if the accept header was not a strict equal toaccept: text/event-stream
. - POST requests that try to execute Subscription operations will now receive an error and 405 status code. This is not considered a breaking change as SSE is not doable over POST by the specification and was never officially supported.
- Clients accepting the