GraphQL get collection data return empty products

Hi there, I am using get collection API to get the product vendor list from the specified collection https://shopify.dev/docs/api/storefront/2023-04/queries/collection but the product list object always return empty array. Is there something that I should configure on my main store? It worked previously, but since the past week this didn’t work anymore.

Here is my GraphQL query

query {
    collection(handle:"men") {
        handle 
        title
        products(first:1, sortKey:MANUAL) {
            filters {
                label
                values {
                label
                count
                input
                }
            }
        }
    }
}

This query works on my development store, but not on my main store

Here is the response

{
    "data": {
        "collection": {
            "handle": "men",
            "title": "MEN",
            "products": {
                "filters": []
            }
        }
    }
}

Do you guys have any idea?

Hi @kevingio :waving_hand:

Generally, we’d expect the query to return the default filters (like price), but it’s possible that the merchant has changed the filters accessible by SFAPI (defaults can be removed). I’d recommend checking the “Shopify Search & Discovery app” under the “Filters” section, to verify there are filters available. It’s worthwhile test adding a new temporary filter to see if it can be retrieved via the same query.

Hope that helps!

hi @ShopifyDevSup

Thank you for your quick response, I’ve checked the filters on “Shopify Search & Discovery app” and everything is there. Please see the screenshot below