-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰: Mutations with @defer only responds with the first part #10272
Comments
This will require some changes to |
@alessbell just to confirm, is there any change Apollo Router has to consider here or is this strictly on the client side? cc @abernix |
To clarify, this is happening from a non-federated AS4 instance, not router |
Yep - I was referring to my attempt to reproduce the issue using the router. When I use a subgraph with the same schema used in https://github.com/lleadbet/graphql-galaxy-demo, I get a "cannot query field 'makePayment' on type 'Query'" error from the router. |
@lleadbet That's good info, thanks for clarifying that. |
Opened the router issue here: apollographql/router#2099 |
Intended outcome:
Using the
useMutation
hook with a mutation with@defer
results in only the first chunk loading.For example, given a server responding with:
Only
is reported in the
data
object.Actual outcome:
Mutations update with the correct data, same as with
useQuery
which works as expected.How to reproduce the issue:
Example Repo: https://github.com/lleadbet/graphql-galaxy-demo
Versions
The text was updated successfully, but these errors were encountered: