# 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/v4"
)
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
NewClient returns a new client based on the configuration arguments received.
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
File uploaded file.
FileCreateInput file creation params.
FileError errors wrapper.
FileOp wraps file GQL API.
FileStatus represents file uploads processing status.
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
Parameter represents staged upload parameter.
PriceList represents a price list.
PriceListPriceInput represents a price list price input.
PriceListServiceOp represents a price list service.
No description provided by the author
No description provided by the author
StagedMediaUploadTarget represents result of a staged upload.
StagedUploadInput represents staged upload request.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
FileService file operations.
No description provided by the author
GQLClient defines the required mutation client operations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PriceListBulkQueryClient defines the required bulk query client operations.
PriceListMutationClient defines the required mutation client operations.
PriceListService defines the price list service operations.
No description provided by the author
StagedUploadMutationClient defines the required mutation client operations.
StagedUploadService supports creation of staged upload targets.
No description provided by the author