Unable to get Product Filter listing using Shopify storefront API Version 2022-01
I have changed types as below(added "filters"):
const ProductConnection = {
"name": "ProductConnection",
"kind": "OBJECT",
"fieldBaseTypes": {
"edges": "ProductEdge",
"pageInfo": "PageInfo",
"filters": "Filters"
},
"implementsNode": false
};
Object.freeze(ProductConnection.fieldBaseTypes);
var ProductConnection$1 = Object.freeze(ProductConnection);
I'm trying to set the query as below but not working:
{
collectionByHandle(handle: "filterable-collection") {
handle
products(first: 10) {
filters {
id
label
type
values {
id
label
count
input
}
}
}
}
}
Ref.: https://shopify.dev/custom-storefronts/products/filter-products
Is there any change require n type or query?
Unable to get Product Filter listing using Shopify storefront API Version 2022-01
I have changed types as below(added "filters"):
const ProductConnection = {
"name": "ProductConnection",
"kind": "OBJECT",
"fieldBaseTypes": {
"edges": "ProductEdge",
"pageInfo": "PageInfo",
"filters": "Filters"
},
"implementsNode": false
};
Object.freeze(ProductConnection.fieldBaseTypes);
var ProductConnection$1 = Object.freeze(ProductConnection);
I'm trying to set the query as below but not working:
{
collectionByHandle(handle: "filterable-collection") {
handle
products(first: 10) {
filters {
id
label
type
values {
id
label
count
input
}
}
}
}
}
Ref.: https://shopify.dev/custom-storefronts/products/filter-products
Is there any change require n type or query?