Shopify.GraphQL.send
You're seeing just the function
send
, go back to Shopify.GraphQL module for more information.
Link to this function
send(query, config)
Specs
send(String.t() | Shopify.GraphQL.Operation.t(), Keyword.t()) :: http_response_t()
Send a GraphQL operation to Shopify.
It's possible to send either a Shopify.GraphQL.Operation
struct or, as a
convenience, a binary query.
query =
"""
{
shop {
name
}
}
"""
operation = %Shopify.GraphQL.Operation{ query: query }
Shopify.GraphQL.send(operation)
or
query =
"""
{
shop {
name
}
}
"""
Shopify.GraphQL.send(query)
You may also pass an optional map of config overrides. This allows you to use different config values on a per-request basis.