Class: ActiveShopifyGraphQL::Loaders::AdminApiLoader
- Inherits:
-
ActiveShopifyGraphQL::Loader
- Object
- ActiveShopifyGraphQL::Loader
- ActiveShopifyGraphQL::Loaders::AdminApiLoader
- Defined in:
- lib/active_shopify_graphql/loaders/admin_api_loader.rb
Instance Method Summary collapse
Methods inherited from ActiveShopifyGraphQL::Loader
#context, #defined_attributes, #execute_query, #has_included_connections?, #initialization_args, #initialize, #load_attributes, #load_connection_records, #load_paginated_collection, #map_response_to_attributes
Constructor Details
This class inherits a constructor from ActiveShopifyGraphQL::Loader
Instance Method Details
#perform_graphql_query(query, **variables) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/active_shopify_graphql/loaders/admin_api_loader.rb', line 6 def perform_graphql_query(query, **variables) executor = ActiveShopifyGraphQL.configuration.admin_api_executor raise Error, "Admin API executor not configured. Please configure it using ActiveShopifyGraphQL.configure" unless executor executor.call(query, **variables) end |