Replies: 2 comments
-
The GraphQL code generator repo is probably a better place to inquire about this. Do note that defer/stream is still not stable so it might not be a priority |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did find something on this. dotansimha/graphql-code-generator#7885 Also, the API has been hardened substantially, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hope this is the right place, but for
@graphql-codegen/typescript-urql
there should be some support for
@defer
because it can break the typescript contract.Example:
generates:
HOWEVER
because
secondVerse
is deferred, itsundefined
in the first response, and present in the second response.followed by
This means I have to be manually defensive for all of the deferred items in my query.
Possible solutions are
undefined
__deferred
Beta Was this translation helpful? Give feedback.
All reactions