hanzo.js icon indicating copy to clipboard operation
hanzo.js copied to clipboard

Support chainable API.

Open zeekay opened this issue 10 years ago • 0 comments

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})

zeekay avatar Dec 05 '15 22:12 zeekay