Closed MVakas closed 5 years ago
The following isn't working.
{
products(first:30, query:"inventoryQuantity:1") {
pageInfo {
hasNextPage
}
edges {
cursor
node{
id
title
vendor
variants(first: 5){
edges {
cursor
node {
availableForSale
inventoryQuantity
}
}
}
}
}
}
}
What you're looking to do is currently not possible. The query
parameter on products only operates on properties of a Storefront.Product
, not its variants or other fields.
Hi I want to fetch products based on some condition on their variants. Like the products where variants
inventoryQuantity
is 1 etc. How may I achieve this?