-
Notifications
You must be signed in to change notification settings - Fork 2.7k
add firstChunk
property on client.query
result, add client.waitForFragment
#12953
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
base: main
Are you sure you want to change the base?
Conversation
|
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 15 new, 63 changed, 26 removed
Build ID: aa36a5a024e33e6c64e1bcdc URL: https://www.apollographql.com/docs/deploy-preview/aa36a5a024e33e6c64e1bcdc |
commit: |
We will not back-land this in v3, we just open this PR to get feedback from a user who is still in the process of migrating to v4
This adds a
firstChunk
property on theclient.query
result promise and also adds aclient.waitForFragment
function.Instead of
which will wait until all deferred chunks have been resolved, this adds the ability to do
instead, which will resolve once initial incremental result comes in, even while deferred chunks are still pending.
Then, further down in the tree, deferred fragments can be consumed like