Strapi V4 populate Media and Dynamiczones from Components

As we already know we can populate by field like “/articles?populate=tags,author”. But, if we have a media filed in author table (lets say an ‘avatar’ image) , it will not be returned in response.

To fix this, we can just access it like this, “/articles?populate=tags,author.avatar” where avatar is the media field we want to populate in our nested author object.

I do it for selective populate use cases. Been bummed about it for couple of days and found out this works by trial and error (smashes_head)

6 Likes