Skip to content

Category filter IN doesn't work in graphQL. #31812

@PedroChagasGuerra

Description

@PedroChagasGuerra

Steps to reproduce:
Create 2 categories, and add some products into.
Try to search with graphql for products filtering by category and put 2 categorys.

Preconditions (*)

  1. Sample data installed
  2. Graphql

Steps to reproduce (*)

  1. Using this query try to search for your products:
    query { products(filter: { category_id: { in: ["ID", "ID"] } }) { total_count items { sku name } } }
    *Change "ID" by your category id.

Expected result (*)

  1. All available products should return.

Actual result (*)

1- It returns just the products from the last category in filter array.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions