0.2.1 • Published 2 years ago
shopify-wrapper v0.2.1
shopify-wrapper
Query and mutate shopfiy data easily and safely
Description
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.
Install
$ npm install shopify-wrapper
or
$ yarn add shopify-wrapper
Usage
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,
});
License
MIT © pnxdxt