hanzo.js
hanzo.js copied to clipboard
Support chainable API.
Currently we support:
var variants = await api.variant.list({productId: '', storeId: ''})
Would be nice to also support:
var store = await api.store.get(storeId)
var products = await store.product.list()
var variants = await store.variant.list({productId: products[0].id})