mipod-shopifyql
v1.6.7
Published
Custom wrapper for Shopify GraphQL, by Mi-One Brands
Readme
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=nullExample 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
