Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support chainable API. #3

Open
zeekay opened this issue Dec 5, 2015 · 0 comments
Open

Support chainable API. #3

zeekay opened this issue Dec 5, 2015 · 0 comments

Comments

@zeekay
Copy link
Member

zeekay commented Dec 5, 2015

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})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant