GraphQL query for "products" with filter "category_uid" always returns all products of all categories
semijoe opened this issue · comments
Steps to reproduce:
- fresh Magento install
- add some products with categories and subcategories
- GraphQL query for "products" with filter "category_uid" works as expected
- fresh install of ScandiPWA theme
- filter by subcategory in layered navigation
- GraphQL query for "products" with filter "category_uid"
Actual result
- filter by subcategory (checkbox in layered navigation) does not filter
- GraphQL query for "products" with filter "category_uid" always returns all products of all categories (even with random category_uid)
Expected result
GraphQL query for "products" with filter "category_uid" should only return products within the given category
Sample GraphQL Query
{ products( filter: { category_uid: {eq: "Nw==" } } ) { items { name } } }
Note that the Query above works as expected in fresh Magento installation, but does NOT work after installing ScandiPWA.
Magento and ScandiPWA are just basic installations without any optional modules/extensions.
@semijoe did you get to the bottom of this issue?
Hi @semijoe!
I'll take a look into this issue today