You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#1648Fix#1656Fix#1659
Pinned to this commit:
graphql/graphql-spec@01d7b98
Since the router will ship before the `@defer` specification is done, we
add a parameter to the `Accept` and `Content-Type` headers to indicate
which specification version is accepted
Co-authored-by: Jesse Rosenberger <git@jro.cc>
…efer_support`
Following up on a tremendous amount of work tracked in
#80 - which brought various
stages of `@defer` support to the Router - this changes our designation of
its status from "Experimental" to "Preview". It's worth noting that the
specification *just* graduated to "Stage 2 (Draft)" mode in the GraphQL
Working Group, so changes may still be expected and there are two stages
ahead. To help things progress we've:
- We've lifted the previous requirement that users opt into defer support by
setting `experimental_defer_support: true` in the `server` section of their
configuration. It is now on by default.
- The option is now called `preview_defer_support` and it can be set to
`false` to _specifically_ opt out of it existing at all. This might be
desired if you would prefer that it not even show up in introspection or
be possible to use even if a client requests it.
- Using `@defer` support _requires_ clients set the appropriate HTTP
`accept` header to use it. This puts the burden of understanding the
risks of an early-preview on the clients who will need to consume the
Router's responses. This is particularly important for clients who have
long-lived support requirements (like native mobile apps).
To see which headers are required, see #1648.
Closes#1673
Since the
@defer
specification is still in development, the clients and router should indicate which version they support:Accept: multipart/mixed; deferSpec=20220824, application/json
Content-Type: multipart/mixed; boundary="graphql"; deferSpec=20220824
The text was updated successfully, but these errors were encountered: