32
Views
3
Comments
Solved
Hierarchical data using aggregates
Question
Application Type
Reactive

How do I retrieve hierarchical data using aggregates, such as a category tree with subcategories and product

2025-02-10 17-24-13
Arun Rajput
Solution

Hi Manisha,

you should have an entity for "Category" with a parent-child relationship, and another entity for "Product" related to categories .

Create an aggregate that retrieves "Category" data and includes a self-join to establish the parent-child relationship.

Include an aggregate within the first aggregate to retrieve related products for each category.

on your UI, use nested List Records widgets to display categories and their corresponding products.

Use indentation or expand/collapse features to show the hierarchical structure

Hope it helps

Arun

UserImage.jpg
Manisha lodhi

Hi Arun

Thanks for information let me implement according to your solution

2025-02-10 17-24-13
Arun Rajput

Sure let me know if need any help.

Regards

Arun

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.