0.2.1 • Published 2 years ago

shopify-wrapper v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

shopify-wrapper

Query and mutate shopfiy data easily and safely

XO code style WIP GitHub workflow status npm version npm downloads

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

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago