Categorygithub.com/gempages/go-shopify-graphql-model
modulepackage
0.0.0-20241007093726-5cf07601178b
Repository: https://github.com/gempages/go-shopify-graphql-model.git
Documentation: pkg.go.dev

# README

go-shopify-graphql-model

This is a simple library to help you use Shopify's GraphQL objects in your Go code.

Getting started

  1. Install dependencies

    yarn
    
  2. Fetch the Shopify graphql schema

    STORE=my-store ACCESS_TOKEN=shpat_xxxxx API_VERSION=2023-07 yarn fetch
    
  3. Remove the following declaration from schema.graphql so that models can be generated

    schema {
        query: QueryRoot
        mutation: Mutation
    }
    
  4. Generate models

    go run main.go
    

# Packages

No description provided by the author
No description provided by the author