Hi, let’s say I’m querying the storefront API with the following parameters:
{
search(
first: 36
types: PRODUCT
query: "tag:food"
productFilters: {
price: {
min: 122
max: 606
}
available: false
}
sortKey: PRICE
unavailableProducts: SHOW
reverse: false
) {
priceRange {
minVariantPrice {
amount
}
maxVariantPrice {
amount
}
}
[...]
I’d expect the results to start from products which are actually unavailable and whose price begins from 122. What I’m getting is something along these lines instead:
"priceRange": {
"minVariantPrice": {
"amount": "0.0"
},
"maxVariantPrice": {
"amount": "0.0"
}
},
with an “availableForSale”: false, which is fine for availability but not for price.
What am I doing wrong? Am I supposed to go at it at a different way? Thanks