I'm rewriting strapi v3 queries to v4 (GraphQL), and with new fields 'data' and 'attributes', I have a problem going too much deep into nested objects, an example of how data looks:
user {
data {
id
attributes {
company {
data {
id
attributes {
location {
data {
id
...
}
}
}
}
}
}
Am I missing something in the documentation, is there a way to avoid this much nesting, should I restructure data in Model, or?
This is a known pain point for many, but no immediate official solution in sight. Gotta deal with it.
https://forum.strapi.io/t/discussion-regarding-the-complex-response-structure-for-rest-graphql-developer-experience/13400/35
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With