Graphql query for child categories and knowledge items
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 04:42 PM
I have a table data which contains child knowledge category on it or the actual data items as structured as below:
Category 1
-Category 1.1
-[item1,item2...]
-Category 1.2
-[item1,item2...]
-Category 1.2.1
-[item1,item2...]
-Category 1.2.2
-[item1,item2...]
-Category 1.2.2.1
-Category 1.2.2.2
... to nth level
so a data could have a category or the actual list of data items. A category could have another set of categories. It could also have the actual data items.
So I have to like check out the categories and drill it down to capture the actual data. This is to the nth level.
I am doing the logic through C# code and perform the recursion stuff. I'm not so comfortable with this approach. Wondering if we could do this using Graphql though.
Has anyone does this before? Or any idea.
Thanks
0 REPLIES 0