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 PASSWORD=my-pass yarn fetch
-
Rename or copy its content from
result.graphqltoschema.graphql -
Remove the following declaration from
schema.graphqlso that models can be generatedschema { query: QueryRoot mutation: Mutation }
-
Generate models
go run main.go