graphql-yoga
6.1.0 · 12 Nov 2026MIT3.3M / weekRepositoryHomepagenpmAtom feed
In short
1 new3 fixed4 internal
Release note
Minor Changes
#4647
cfd0092
Thanks @egoodwinx! - Add support for the HTTPQUERYmethod as
described in
graphql/graphql-over-http#411.QUERYrequests carry the GraphQL params in the request body, exactly likePOST
(application/json,application/graphql+json,application/graphql, andapplication/x-www-form-urlencodedare all supported), but are treated as safe/read-only likeGET: sending a mutation overQUERYis rejected with a405 Method Not Allowedresponse, the
same way it already is forGET.
Patch Changes
#4650
045fc2f
Thanks @Shaurya55555! - Match the requestContent-Typemedia
type case-insensitively and allow optional whitespace before its parameters, as required by
RFC 9110. A request sent withApplication/JSONorapplication/json ; charset=utf-8was
rejected with415 Unsupported Media Type.#4658
38e9f1b
Thanks @egoodwinx! - dependencies updates:Updated dependency
@whatwg-node/promise-helpers@^2.0.2↗︎
(from^2.0.0, independencies)Updated dependency
@whatwg-node/server@^0.13.3↗︎
(from^0.13.1, independencies)
#4646
35501fe
Thanks @mattkrick! - A schema factory function now works whengetEnvelopedis called outside of the request pipeline, for example bygraphql-ws. When the
context passed togetEnvelopedhas a Fetch APIRequestasrequest, the factory is called
with that context instead of throwing "No schema found for this request", and it has to return the
schema synchronously there. The WebSocket recipes now pass the upgrade request asrequest.#4656
807c7af
Thanks @mattkrick! - Mutations sent over a WebSocket no longer
fail with "Can only perform a mutation operation from a POST request." when the WebSocket server
passes the upgrade request togetEnvelopedorgetResultForParams. The check now applies only
to requests that Yoga's HTTP handler parsed.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.