4
0
forked from crowetic/commerce

Use the query

This commit is contained in:
Luis Alvarez
2020-09-30 13:36:02 -05:00
parent 9ca977c44f
commit b9be9ea749
4 changed files with 26 additions and 12 deletions

View File

@@ -69,12 +69,3 @@ export default class BigcommerceAPI implements CommerceAPI {
};
}
}
let h = new BigcommerceAPI({ apiToken: '', commerceUrl: '' });
async function yay() {
const x = await h.getAllProducts<{ custom: 'val' }>({ query: 'yes' });
const y = await h.getAllProducts();
console.log(x.products);
}