Skip to content

Mi-Pod/shopifyQl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopify QL Package

Custom wrapper for Shopify GraphQL, by Mi-One Brands

Required .ENV Variables

B2C_TOKEN=null
B2B_TOKEN=null
VAP_TOKEN=null
SHOPIFY_API_VERSION=null

Example Usage

import { shopifyQl } from "mipod-shopifyql";

async function getShopName() {
  const site = "B2B";
  const query = `
{
  shop {
    id
    name
    }
}
  `;
  const input = null;
  const response = await shopifyQl(site, query, input);
  const shop = response.data.shop;
  console.log(`Found:`, shop.name);
}

getShopName();

Change Logs

v1.6.5

Fixed:

  • Emit GraphQL functions in index.js

Added:

  • GraphQl/Orders
    • getOrderName
    • getFulfillmentOrdersByOrderId

v1.6.4

Added:

  • GraphQl/AccountCredit
    • CreditAccount
    • DebitAccount
  • GraphQL/Customers
    • getCustomer
    • createCustomer
    • deleteCustomer
  • GraphQL/Metafields
    • setMetafields
  • GraphQL/Webhooks
    • getWebhooks
    • createWebhook
    • deleteWebhook

About

Custom wrapper for Shopify GraphQL, by Mi-One Brands

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors