skip to Main Content

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.

2

Answers


  1. Chosen as BEST 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


  2. At this time, it’s only possible to invoke ShopifyQL from the Embedded App SDK.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search