shopify_graphql v0.1.0 Shopify.GraphQL.Config

Link to this section Summary

Functions

Build a config struct.

Link to this section Types

Link to this type

t()
t() :: %Shopify.GraphQL.Config{
  access_token: String.t(),
  endpoint: String.t(),
  host: String.t(),
  http_client: module(),
  http_client_opts: any(),
  json_codec: module(),
  path: String.t(),
  port: String.t(),
  protocol: String.t(),
  shop: String.t(),
  version: String.t()
}

Link to this section Functions

Link to this function

new(overrides \\ %{})
new(map()) :: t()

Build a config struct.

Config is composed of values provided through application configuration and a map of optional overrides. If overrides are provided they will be merged with the application configuration.