Home > @infiniteobjects/shopify-data-manager > ShopifyService
Shopify Service
Signature:
export declare class ShopifyService
This service is responsible for interacting with the Shopify API It creates a Shopify API instance with the following configuration: - isCustomStoreApp
is set to true because we are using a custom app - isEmbeddedApp
is set to false because we are not using an embedded app
Constructor | Modifiers | Description |
---|---|---|
(constructor)(config) | Creates a new Shopify Service |
Property | Modifiers | Type | Description |
---|---|---|---|
adminSDK | Sdk | ||
gql | ShopifyAdminRequester | GraphQL Api | |
isProduction | readonly |
boolean | True if the store is the production store |
log | LoggerInstance | A logger instance | |
rest | RestClient | Rest Api | |
session | Session | The active session for the Shopify API instance | |
shopify | Shopify<ConfigParams, typeof restResources> | Shopify API instance | |
storeEnvironment | readonly |
ShopifyEnvironment | Gets the environment for a given store |
storeId | string | The store Id we are working with | |
storeName | readonly |
string | The store name (no myshopify.com domain) |
Method | Modifiers | Description |
---|---|---|
fetchAdminSchema() | Fetches the API Schema | |
getValidatorForGraphQl(errPath) |