lib/shopify-cli/partners_api.rb
##
# issues a graphql query or mutation to the Shopify Partners Dashboard CLI Schema.
# It loads a graphql query from a file so that you do not need to use large
# unwieldy query strings. It also handles authentication for you as well.
#
# #### Parameters
# - `ctx`: running context from your command
# - `query_name`: name of the query you want to use, loaded from the `lib/graphql` directory.
# - `**variable`: a hash of variables to be supplied to the query ro mutation
#
# #### Raises
#
# * http 404 will raise a ShopifyCli::API::APIRequestNotFoundError
# * http 400..499 will raise a ShopifyCli::API::APIRequestClientError
# * http 500..599 will raise a ShopifyCli::API::APIRequestServerError
# * All other codes will raise ShopifyCli::API::APIRequestUnexpectedError
#
# #### Returns
#
# * `resp` - graphql response data hash. This can be a different shape for every query.
#
# #### Example
#
#   ShopifyCli::PartnersAPI.query(@ctx, 'all_organizations')
#
issues a graphql query or mutation to the Shopify Partners Dashboard CLI Schema.
It loads a graphql query from a file so that you do not need to use large
unwieldy query strings. It also handles authentication for you as well.



Raises



Returns

`resp` - graphql response data hash. This can be a different shape for every query.

Example


issues a graphql query or mutation to the Shopify Partners Dashboard CLI Schema . It loads a graphql query from a file so that you do not need to use large unwieldy query strings . It also handles authentication for you as well . Raises Returns ` resp ` - graphql response data hash . This can be a different shape for every query . Example
def api_client(ctx)
        new(
          ctx: ctx,
          token: access_token(ctx),
          url: "#{endpoint}/api/cli/graphql",
        )
      end
def api_client ( ctx ) new ( ctx : ctx , token : access_token ( ctx ) , url : "#{endpoint}/api/cli/graphql" , ) end
issues a graphql query or mutation to the Shopify Partners Dashboard CLI Schema.
issues a graphql query or mutation to the Shopify Partners Dashboard CLI Schema .
ctx
<not_specific>