Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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?
User | RANK |
---|---|
5 | |
4 | |
4 | |
3 | |
3 |