How can I handle fetching a "data type inside data type" (related data) from Xano in Bubble?

I’m working with two data types in Xano: “Questions” and “Answers.” Each question is related to a list of answers. I know I can fetch a list of questions and a separate list of answers, then relate them in the frontend. However, I believe there might be a more efficient way.

In Xano, I’m using the ADDON feature to fetch related data, so I can pull a list of questions and include the related answers directly within each question.

My question is: How should I handle this in the Bubble frontend? If I receive from my API a list of questions, each containing a list of related answers, what’s the best approach to display or manipulate this data in Bubble?

Any insights or suggestions would be greatly appreciated!

Hey

I think the best way would be to transform the response being sent from Xano.

Thanks
Ali

Hey - thanks
I wonder if there is a way to send just one api result contatining all questions and their related answer, instead of sending two seperate reults (one for questions and one for answers)

Yes, you just need to edit the response you get from XANO