I am running a query to Shopify’s GraphQL, looking for all variants that have 0 or less in stock and have CONTINUE as its inventory policy.
{
productVariants(
first: 100
query: "inventory_policy:CONTINUE AND inventory_quantity:<=0"
) {
nodes {
inventoryPolicy
product {
title
}
title
}
}
}
The query is tested and works in all ways but the ignored query.
It does filter by inventory_quantity correctly, but ignores the second query, returning variants both with inventory_policy CONTINUE, and DENY.
I’ve tried using CONTINUE, continue, or Continue.
I’ve tried setting the parameter as inventoryPolicy instead of inventory_policy.
I’ve tried removing the quantity parameter, only querying "inventory_policy:CONTINUE".
The query does return the inventoryPolicy, and its content is either "DENY" or "CONTINUE"
New contributor