Solved

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

EugeneKim
Shopify Partner
60 3 27

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

Accepted Solution (1)

EugeneKim
Shopify Partner
60 3 27

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
60 3 27

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
Shopify Partner
16 0 4

Curious - what did you pass in as the introspectionQuery?