Hi All!
I’m building a filtering system that fetches dynamic data from Supabase.
So, here how it works. I have 2 dropdowns.
#1 - Main Category
#2 - Sub-category
The table in Supabase has columns ID, parent_id, name_of_product (screenshot below)
For dropdown #1 I need to group everything by parent_id and then display only related names into dropdown #2.
I achieved to group by and display their parent_id and id in related dropdowns.
But I’m facing an issue and can’t display these lists as names of products, they keep displaying as just an id number.
Question: How to display names of categories (not a parent_id) and sub-categories (not their id)?!
I tried everything, filtering, grouping, etc. nothin works.
Please share your experience.
Thanks!
P.S. @Nass perhaps you can help too?