Personalized checkout and custom promotions with Shopify Scripts
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
I'm asking for help - I'm a student and I'm learning Shopify API.
I have a theoretically trivial problem.
I use GraphiQL to test queries. There, I ask about the available filters that I have configured in Storefront Filters. Example:
Available queryFilters { collection(handle: "tires") { handle products(first: 10) {
filters { id label type values { id label count input } } } } }
The answer I get:
{ "date": { "collection": { "handle": "tires", "products": { "filters": [ { "id": "filter.v.availability", "label": "Availability", "type": "LIST", "values": [ { "id": "filter.v.availability.1", "label": "In stock", "count": 3, "input": "{\"available\":true}" }, { "id": "filter.v.availability.0", "label": "Out of stock", "count": 0, "input": "{\"available\":false}" } ] }, { "id": "filter.v.price", "label": "Price", "type": "PRICE_RANGE", "values": [ { "id": "filter.v.price", "label": "Price", "count": 0, "input": "{\"price\":{\"min\":0,\"max\":669.0}}" } ] }, { "id": "filter.p.m.tires.season", "label": "Tire Season", "type": "LIST", "values": [ { "id": "filter.p.m.tires.season.summer", "label": "Summer", "count": 2, "input": "{\"productMetafield\":{\"namespace\":\"tires\",\"key\":\"season\",\"value\":\"Summer\"}} " }, { "id": "filter.p.m.tires.season.winter", "label": "Winter", "count": 1, "input": "{\"productMetafield\":{\"namespace\":\"tires\",\"key\":\"season\",\"value\":\"Winter\"}} " } ] }, { "id": "filter.p.product_type", "label": "Product type", "type": "LIST", "values": [ { "id": "filter.p.product_type.summer", "label": "Summer", "count": 2, "input": "{\"productType\":\"Summer\"}" }, { "id": "filter.p.product_type.winter", "label": "Winter", "count": 1, "input": "{\"productType\":\"Winter\"}" } ] }, { "id": "filter.p.m.tires.manufacturer", "label": "Tire Manufacturer", "type": "LIST", "values": [ { "id": "filter.p.m.tires.manufacturer.continental", "label": "Continental", "count": 2, "input": "{\"productMetafield\":{\"namespace\":\"tires\",\"key\":\"manufacturer\",\"value\":\"Continental\"}} " }, { "id": "filter.p.m.tires.manufacturer.pirelli", "label": "Pirelli", "count": 1, "input": "{\"productMetafield\":{\"namespace\":\"tires\",\"key\":\"manufacturer\",\"value\":\"Pirelli\"}} " } ] } ] } } } }
As you can see, we have several values for the filter.p.m.tires.manufacturer field. So I'm trying to extend this query to another environment, e.g. Postman or Wized. Configures environment and culmination: I only get one value for this field.
Could I get an answer why this is happening? PS. The token is ok, I truncated it for security.