api.integrations.shopify.graphql

Shopify Admin GraphQL calls for one store.

A 401 gets one retry with a fresh token (nothing was applied); a 429 is retried after Shopify’s Retry-After (nothing was applied either). Anything else that fails raises, a mutation is never sent twice.

Attributes

Exceptions

ShopifyError

A Shopify call that did not complete.

Classes

Module Contents

api.integrations.shopify.graphql.logger
api.integrations.shopify.graphql.TIMEOUT_SECONDS = 60
api.integrations.shopify.graphql.RATE_LIMIT_RETRIES = 3
exception api.integrations.shopify.graphql.ShopifyError

Bases: RuntimeError

A Shopify call that did not complete.

class api.integrations.shopify.graphql.GraphQL(domain: str, api_version: str, token_provider: api.integrations.shopify.auth.TokenProvider = get_shopify_access_token, error: type[ShopifyError] = ShopifyError)
url
token_provider
error