Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get Product Filter listing #162

Open
RiddhiAccustrategix opened this issue Dec 30, 2021 · 0 comments
Open

Unable to get Product Filter listing #162

RiddhiAccustrategix opened this issue Dec 30, 2021 · 0 comments

Comments

@RiddhiAccustrategix
Copy link

RiddhiAccustrategix commented Dec 30, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant