When i try the following query:
query searchWithFilters($query: String!, $first: Int, $productFilters: [ProductFilter!]) {
search(query: $query, first: $first, productFilters: $productFilters) {
edges {
node {
... on Product {
handle
}
}
}
}
}
With the following variables:
{ "query": "", "first": 100, "productFilters": [{'productMetafield':{"namespace": "mynamespace", "key": "mykey", "value": "myvalue"}}] }
I am getting back 100 products vs the expected 2 that have product metafields with the namespace mynamespace, the key mykey and the value myvalue
For each of my product metafields i have defined, i have turned on:
“Filter in product index” - Adds definition to the filter options in the product index
Why does the query not filter the results?