Query and mutate shopfiy data easily and safely
This is package was built to make it as easy and as type-safe as possible to query data from shopify.
It is made to run on the client and server side leveraging cross-fetch
. (ie: on ssr)
Todo:
- Queries for pages, blog, articles…
- Error handling
- Mutations
Feel free to contribute.
$ npm install shopify-wrapper
or
$ yarn add shopify-wrapper
import shopifyWrapper from 'shopify-wrapper';
const config = {
domain: process.env.domain,
token: process.env.token,
};
const product = await shopifyWrapper.product.find({
handle: 'my-super-product',
config,
});
MIT © pnxdxt