Ad

Using ShopifyQL In Web Services

- 1 answer

Can someone tell me how to query shopify in server? I want to fetch product data by barcode but I don't know where should I put my query in server.

Ad

Answer

Ah I can solve it with :

  1. get all admin/products.json with limit and page
  2. limit and page can be handle with admin/products/count.json (https://www.demacmedia.com/shopify-commerce/shopify-tutorials/how-to-fetch-all-products-using-shopify-pagination/)
  3. for make it faster we can use products.json?field=id,barcode,etc
  4. then loop the json result with object.find until found the right product with attribute you want to filter

Thanks guys for your answer. Cheers

Ad
source: stackoverflow.com
Ad