-
Notifications
You must be signed in to change notification settings - Fork 272
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
specify the path instead of creating a deferred response from the root #1469
Comments
An example with lists. Queryquery AllProducts {
allProducts {
id
... on Product @defer {
hidden
}
}
} Router current behavior
What we would expect
We never expect to have to merge lists, instead we expect each item to have its own payload. This allows the client to know at each payload what has been received or not. |
that one with lists is unlikely to happen, considering how the query plan is built. And the separate |
The separate For the lists: to clarify, on our side, the need is to have a 1:1 mapping between payloads and deferred fragments. |
The separate Given graphql/defer-stream-wg#46, can we consider this question similarly resolved? |
ok so #1529 should fix it, and the good news is that after thinking about this for a while, the only correct way I see to implement it solves both points at once, using a path prefix and generating one response per list element |
@BoD @alessbell this will go in the next release, probably early next week |
very cool! 🙏 |
Tested with v0.16.0, it's looking good on Apollo Kotlin's side! 🎉 |
Nice 😄 |
on this query:
we get:
then:
while the second response should be:
The text was updated successfully, but these errors were encountered: