scandipwa / scandipwa

Next-generation front-end for Magento 2

Home Page:https://scandipwa.com/?utm_source=github&utm_medium=readme&utm_campaign=general

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL query for "products" with filter "category_uid" always returns all products of all categories

semijoe opened this issue · comments

Steps to reproduce:

  1. fresh Magento install
  2. add some products with categories and subcategories
  3. GraphQL query for "products" with filter "category_uid" works as expected
  4. fresh install of ScandiPWA theme
  5. filter by subcategory in layered navigation
  6. GraphQL query for "products" with filter "category_uid"

Actual result

  1. filter by subcategory (checkbox in layered navigation) does not filter
  2. 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