reactjs – Can’t find media fields from dyanamic zone in GraphQL in Strapi CMS

I am using Strapi with Gatsby. I have set up a content type called ‘Page’ and setup a dyanamic zone in ‘Page’ where I have a media field, video to be precise with two other text fields. When I query in GraphQL, I can find the text fields fine, but the media field does not appear.

The Field in Strapi Admin panel. Named heroBackground.

The other two fields appearing fine, but heroBackground is missing

The file exists when i visit the upload/files endpoint

But does not appear when I try to find it on the ‘Page’ content type

I am definitely doing something wrong. Please help me find what it is. Thanks in advance.

Read more here: Source link