You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple ways how to generate TypeScript types from a GraphQL introspection query. I've used a module called graphql-codegen in the past, which seems to be deprecated / going to be archived and they also advise you to use the proposed solution. So I guess, it's the way to go! 👍
Keep in mind that the introspection query is used by these generators usually and the introspection usually shouldn't be made available for production systems. Maybe @danieltott can advise on how this should be done then. I guess you could export introspection query results manually and then use that static version of the introspection to generate code through the codegen script.
Is there an existing issue for this?
Issue Context
There's been chatter on Typescript Tuesdays about how there's a way to have a typesafe GraphQL client...
Proposed solution
The current library we're using suggests a possible solution using this GraphQL codegen and this plugin.
Alternatives Considered
No response
Additional Resources
@tkshill @Narigo - Does this look like it could work?
Code of Conduct
The text was updated successfully, but these errors were encountered: