# README
go-shopify-graphql
A simple Shopify client using the Shopify's GraphQL Admin API.
Getting started
A 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/v2"
)
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 .
# 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
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
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
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
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
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
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
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
# Type aliases
CollectionRuleColumn string enum VENDOR The vendor attribute.
CollectionRuleRelation enum STARTS_WITH The attribute starts with the condition.
CollectionSortOrder enum PRICE_DESC By price, in descending order (highest - lowest).
CountryCode enum ISO 3166-1 alpha-2 country codes with some differences.
CurrencyCode enum USD United States Dollars (USD).
No description provided by the author
No description provided by the author
No description provided by the author
MediaContentType enum EXTERNAL_VIDEO An externally hosted video.
MetafieldValueType enum INTEGER An integer.
No description provided by the author
No description provided by the author
No description provided by the author
ProductVariantInventoryPolicy String enum: CONTINUE, DENY.
URL An RFC 3986 and RFC 3987 compliant URI string.
WeightUnit String enum: GRAMS, KILOGRAMS, OUNCES, POUNDS.