new Shopify(options)
    
    
    Creates a Shopify instance.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        
        Description | 
    
    
    
    
        
            
                options | 
            
            
            
                
Object
            
             | 
            
            
            Configuration options
                Properties
                
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
     
    
    
    
        
            
                shopName | 
            
            
            
                
String
            
             | 
            
                
                
                
                
                 | 
            
            
            The name of the shop | 
         
    
        
            
                apiKey | 
            
            
            
                
String
            
             | 
            
                
                
                
                
                 | 
            
            
            The API Key | 
         
    
        
            
                password | 
            
            
            
                
String
            
             | 
            
                
                
                
                
                 | 
            
            
            The private app password | 
         
    
        
            
                accessToken | 
            
            
            
                
String
            
             | 
            
                
                
                
                
                 | 
            
            
            The persistent OAuth public app token | 
         
    
        
            
                apiVersion | 
            
            
            
                
String
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            The Shopify API version to use | 
         
    
        
            
                presentmentPrices | 
            
            
            
                
Boolean
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Whether to include the header to
    pull presentment prices for products | 
         
    
        
            
                autoLimit | 
            
            
            
                
Boolean
|
Object
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Limits the request rate | 
         
    
        
            
                timeout | 
            
            
            
                
Number
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            The request timeout | 
         
    
        
            
                parseJson | 
            
            
            
                
function
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            The function used to parse JSON | 
         
    
        
            
                stringifyJson | 
            
            
            
                
function
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            The function used to serialize to
    JSON | 
         
    
    
 
             | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
     
    
    
    
    
    
    
    
    
        Methods
        
            
    
    
    graphql(dataopt) → {Promise}
    
    
    Sends a request to the Shopify GraphQL API endpoint.
    Parameters:
    
    
    
        
        | Name | 
        
        Type | 
        
        Attributes | 
        
        
        Description | 
    
    
    
    
        
            
                data | 
            
            
            
                
String
            
             | 
            
                
                
                    <optional> 
                
                
                
                 | 
            
            
            Request body | 
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
Returns:
        
    - 
        Type
    
 
    - 
        
Promise