go-shopify-graphql-model

command module
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 7 Imported by: 0

README

go-shopify-graphql-model

This is a simple library to help you integrate Shopify's GraphQL API into your Go code.

Getting started

  1. Fetch the Shopify graphql schema

    STORE=my-store PASSWORD=my-pass node fetchSchema.js 
    
  2. Rename or copy its content from result.graphql to schema.graphql

  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 
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
graph

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL