I’ve following models
- Category
- Item
1st model is having a structure similar to parent-child, like Category & Subcategory.
Item is linked to Category/Subcategory.
I’m trying to filter all items that are linked to either Category or Subcategory.
For example:
Item 1 is linked to Cat1
Item 2 is linked to Subcat11 (Subcat11 is the child of Cat1)
I want both the items when I do pass Category as Cat1
. Can anyone please help?
Thanks in advance