-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support for TypedDocumentNode #174
Comments
|
TypedDocumentNode - https://the-guild.dev/graphql/codegen/plugins/typescript/typed-document-node It is really great thing, beacuse you can use it in basically any client out there like urql, react, etc - this is the part of the types, it cannot be just string. And secondly, generateMutationOp, does require you to include variables straight away, but that is not how it is used in react clients, you know what variables are once you are calling it, not when you make definition - something like this:
|
yah following @homoky here , im using with vue though and typically you would use it with a named parameter
in code it would look like
Im looking to create the typed-document-node since the types should be enough to allow for it |
I spend another few days checking the alternatives, closest is the typed-graphql-builder that is working as expected with clients like This requested change would make genql usable literaly everywhere, with any graphql client but still 100 % typed. |
I really love the API (how the genql is used). It would be great if:
would support
TypedDocumentNode
so it would be possible to use with any React client.The text was updated successfully, but these errors were encountered: