This is a simple library to help you use Shopify's GraphQL objects in your Go code.
-
Install dependencies
yarn
-
Fetch the Shopify graphql schema
STORE=my-store ACCESS_TOKEN=shpat_xxxxx API_VERSION=2023-07 yarn fetch
-
Remove the following declaration from
schema.graphql
so that models can be generatedschema { query: QueryRoot mutation: Mutation }
-
Generate models
go run main.go