# README
go-shopify-graphql
A simple client using the Shopify GraphQL Admin API.
Getting started
Hello World example
0. Setup
export STORE_API_KEY=<private_app_api_key>
export STORE_PASSWORD=<private_app_password>
export STORE_NAME=<store_name>
1. Program
package main
import (
"fmt"
shopify "github.com/r0busta/go-shopify-graphql/v6"
)
func main() {
// Create client
client := shopify.NewDefaultClient()
// Get all collections
collections, err := client.Collection.ListAll()
if err != nil {
panic(err)
}
// Print out the result
for _, c := range collections {
fmt.Println(c.Handle)
}
}
3. Run
go run .
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
go:generate mockgen -destination=./mock/bulk_service.go -package=mock .
go:generate mockgen -destination=./mock/collection_service.go -package=mock .
go:generate mockgen -destination=./mock/fulfillment_service.go -package=mock .
go:generate mockgen -destination=./mock/inventory_service.go -package=mock .
go:generate mockgen -destination=./mock/location_service.go -package=mock .
go:generate mockgen -destination=./mock/metafield_service.go -package=mock .
go:generate mockgen -destination=./mock/order_service.go -package=mock .
go:generate mockgen -destination=./mock/product_service.go -package=mock .
go:generate mockgen -destination=./mock/variant_service.go -package=mock .
# Type aliases
No description provided by the author