Skip to content

Unable to get Product Filter listing #162

Description

@RiddhiAccustrategix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions