Closed Komal2905 closed 4 years ago
Could you please provide the query that you've built using the Buy SDK query builder?
@dbart01
{shop{name,paymentSettings{currencyCode,countryCode}},products(first:10,reverse:false,sortKey:TITLE,query:"inventory_total:0"){edges{cursor,node{id,title,description,descriptionHtml,vendor,productType,createdAt,updatedAt,tags,images(first:1){edges{node{id,originalSrc,altText}}},variants(first:250){edges{node{price,availableForSale}}},options{id,name,values}}}}}
this is the build query
Please use available_for_sale:false
instead. As per the query
parameter documentation:
@dbart01 Thank you so much :) I was struggling for 2 days to achieve this
I need to get product which are in stock When I run
in shopify-graphiql-app , I get proper result.
but when I use same query in mobile app, the condition in query is getting ignored, and app received all product which have inventory_total > 0