-
Notifications
You must be signed in to change notification settings - Fork 466
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
@apollo/server + defer seems incompatible with URQL 3.0.3 #2995
Comments
Honestly, I'm willing to convert this to a discussion, but I'm not willing to accept this as a bug report, I'm sorry 😅 From our standpoint, three things are important to note here right away:
So, basically, I've extended our example and tried some of this out again. Our own server implementation with Then I tried Apollo Server. It requires me to add Unfortunately, even when adding this I can only get Apollo Server to either throw on a response or to send an empty JSON blob as a response 🤷 I'd say, the implementation here isn't working as intended. Then I tried How that has happened, I have no idea, but it's unfortunately not a format that I recognise. I would opt for supporting this in The tl;dr of this is: this is very experimental and you can't really trust most implementations of this just yet, unless you handle this yourself 😅 From my end, all I can say is, any example that's in meros will definitely work. Edit: You can find the upgraded example servers on this branch: https://github.com/urql-graphql/urql/tree/example/upgrade-with-defer-stream/examples/with-defer-stream-directives |
@dotansimha: Actually, to quickly rope you into this, if you don't mind 😅 I'm looking at Do you know how that came to be? I'm struggling to understand where that came from, because I can't find any mention of this in the specification of the payloads To me this just seems off-spec, since it's a different format, but I'm sure it couldn't have come from nowhere 😅 |
@kitten YES: I appreciate the moving target this all is. I'm more coupled to URQL than I am any server (for now) and am happy with ANYTHING that works while its coming online over the next 6-12months. |
Well, I'm hesitant to say that Helix works. Helix works because in our reference implementation we manually implemented the response logic 😅 I'd much rather say that it works with GraphQL Yoga, so I'm hoping we can at least get the issues with Yoga clarified and resolved |
Hey just a quick note, the GraphQL Yoga simply forwards the result from graphql-js execution. |
@enisdenjo Thank you so much for linking this. I really struggled to find a reference to Alright, that really gives me something good to work with. I'll track this in a new issue, if you don't mind, @jtwigg, since we now have a separate concern here. Thank you so much again for linking this, @enisdenjo ❤️ |
Superseded by #3003 |
Describe the bug
When running URQL against
@apollo/server@4.4.1
Im finding that the@defer
keyword isn't working properly.Using the canonical query of
and used in a component like:
I'm finding that the delayed
secondVerse
does trigger a second re-draw of the component as though the data is coming in, however the payload is EXACTLY the same as the first payload (secondVerse
) is missing."hasNext": false
is occuring for the second payload.** It feels close to working! **
Reproduction
Todo...
Urql version
urql@3.0.3
Validations
The text was updated successfully, but these errors were encountered: