All things Shopify and commerce
I am using GraphQL Admin API for my app and I need to write a Grapql query to fetch products which have at least one product variant's inventoryPolicy as "CONTINUE". I use the below GraphQL query for it and it doesn't work. As a workaround, I can do this filtration on the client side but it is hard to maintain pagination so is there any way to do it at the query level? Below query return all the CONTINUE and DENY inventoryPolicyquery
getProducts { products( first: 4 query: "status:active AND variants.inventory_policy:CONTINUE " ) { pageInfo { hasNextPage hasPreviousPage endCursor startCursor } edges { node { id title handle featuredImage { transformedSrc } status vendor variants(first: 20) { edges { node { id title availableForSale inventoryQuantity inventoryPolicy } } } } } } }
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025