GraphQL Admin API for filter products based on variant's inventoryPolicy

pa1997
Shopify Partner
2 0 1

 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
}
}
}
}
}
}
}
Replies 0 (0)