How to create a nested data structure without using components or json type?

Also you can use strapi.query() and make your custom requests instead of using the strapi’s default methods for find/findOne.