I had the same problem, and I ended up making a script that parses the GraphQL complex response into a simple one while keeping the right typescript types. The idea is to use it in the frontend.
Find it here: Flatten Strapi 4's response JSON · GitHub