Custom wrapper for Shopify GraphQL, by Mi-One Brands
B2C_TOKEN=null
B2B_TOKEN=null
VAP_TOKEN=null
SHOPIFY_API_VERSION=nullimport { 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();Fixed:
- Emit GraphQL functions in index.js
Added:
- GraphQl/Orders
- getOrderName
- getFulfillmentOrdersByOrderId
Added:
- GraphQl/AccountCredit
- CreditAccount
- DebitAccount
- GraphQL/Customers
- getCustomer
- createCustomer
- deleteCustomer
- GraphQL/Metafields
- setMetafields
- GraphQL/Webhooks
- getWebhooks
- createWebhook
- deleteWebhook