Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

Solved

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

EugeneKim
Shopify Partner
60 3 29

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

Accepted Solution (1)

EugeneKim
Shopify Partner
60 3 29

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 29

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 5

Curious - what did you pass in as the introspectionQuery?