shopifyStore.productVariant .get(null, { query: 'sku:XXA12TA0804080000' }) .then((result) => { console.log(result); }) .catch((error) => { console.error(error); });
And the result is null. However if i step into the function and observe the url being composed and i try to paste it in the browse and make the request it shows me results. How can this be?
Hi
I am doing the following:
shopifyStore.productVariant .get(null, { query: 'sku:XXA12TA0804080000' }) .then((result) => { console.log(result); }) .catch((error) => { console.error(error); });
And the result is null. However if i step into the function and observe the url being composed and i try to paste it in the browse and make the request it shows me results. How can this be?