Nested data in a component

Hello!

I have a dynamic zone component called blogPost, where I expect the nested (Author) data also to show up. The nested data shows up if I call the API, /blogs/{id}, but in the component it will just give back the ID of the author.

I guess the question is similar to this question, but nobody seems to have a solution, so I will give it a try again.

This is how the component looks like.

{
  "collectionName": "components_elements_blogs",
  "info": {
    "name": "blogPost",
    "icon": "text-width"
  },
  "options": {},
  "attributes": {
    "blogPost": {
      "model": "blogs"
    }
  }
}

Okay after some digging there seem to be many people posting more or less the same question. I also found a ticket where it is discussed. Bottomline; not possible at the moment. Work around is to just query the missing object based on the ID. Not a scalable or elegant solution, but I guess there is not a lot we can do about it. Hopefully this will be solved in the near future!

1 Like