A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
It would be great to have the types when making queries during development
Solved! Go to the solution
This is an accepted solution.
If anyone wants to do this in the future here's what I ended up doing:
Create an introspection query
https://graphql.org/graphql-js/utilities/#introspectionquery
Use the graphql-code-generator library to generate the necessary types
This is an accepted solution.
If anyone wants to do this in the future here's what I ended up doing:
Create an introspection query
https://graphql.org/graphql-js/utilities/#introspectionquery
Use the graphql-code-generator library to generate the necessary types
Curious - what did you pass in as the introspectionQuery?