@dmkishi/shopify-provider
v1.1.1
Published
Simple wrapper over the Shopify GraphQL Admin API w/ handy abstraction for bulk operations.
Downloads
12
Readme
Shopify Provider
Simple wrapper over the Shopify GraphQL Admin API with a handy abstraction for bulk operations.
Install
npm install --save @dmkishi/shopify-providerUsage
import ShopifyProvider from '@dmkishi/shopify-provider';
type Product = {
title: string
tags: string[]
};
const shopifyProvider = new ShopifyProvider({
storeDomain: 'example.myshopify.com',
apiVersion: '2025-10',
accessToken: 'shpat_EXAMPLE',
});
// Optionally provide a type parameter, or omit for `any[]`.
const products = await shopifyProvider.bulkOperation<Product>(/* graphql */`
{
products {
edges {
node {
title
tags
}
}
}
}
`);
console.log(products); // [{ title: "Title", tags: ["Tag"] }, ... ]Develop
# Build and publish
npm run publish