Does Shopify have a GraphQL client library for the Admin API written in Typescript?

Solved
EugeneKim
Shopify Partner
59 3 18

It would be great to have the types when making queries during development

Accepted Solution (1)

Accepted Solutions
EugeneKim
Shopify Partner
59 3 18

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

View solution in original post

Replies 2 (2)
EugeneKim
Shopify Partner
59 3 18

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

codyb13
Excursionist
15 0 4

Curious - what did you pass in as the introspectionQuery?