A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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:
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
Also solved with this method. I think this should be better explained in the docs. I'm using version 2024-07