Development discussions around Shopify APIs
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 |
---|---|
58 | |
11 | |
8 | |
7 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023