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

Solved

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

TrackPack

Gain shipment visibility, increase customer confidence and optimize your customer support using TrackPack's Email / SMS shipping notifications and order tracking page generator.
0 Likes

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

TrackPack

Gain shipment visibility, increase customer confidence and optimize your customer support using TrackPack's Email / SMS shipping notifications and order tracking page generator.
0 Likes