-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preview @defer support #80
Labels
Comments
I've changed this issue to just be about |
Closed
This was referenced Jun 1, 2022
This is done via a lot of tickets. |
abernix
added a commit
that referenced
this issue
Sep 2, 2022
…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
This was referenced Sep 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current plan
Implement defer only for now, in the router, with some query planner modification.
@defer RFC
Related issues:
format_response
#1178map_deferred_response
in rhai #1219map_deferred_response
onExecutionResponse
andRouterResponse
#1409map_deferred_response
in rhai #1219map_deferred_response
onExecutionResponse
andRouterResponse
#1409@defer
directive is not returned by introspection queries #1544application/json
if there's only one answer #1575To be defined:
The text was updated successfully, but these errors were encountered: