[gatsby-source-strapi] Is there any way to access an image's alt and caption through GraphQL #421
Replies: 1 comment
-
Answer - it can be found on the STRAPI_MEDIA type. In my case this only happened after restarting Gatsby and clearing its cache. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When attaching an image to a media field in the Strapi Content Manager, we have the option to add an
alternativeText
andcaption
, however it seems that neither of these fields are exposed via GraphQL, either on the relevant field or any child fields. Is there any way to access these fields via the GraphQL API?Here is the Strapi UI:
Here is an example of a field called
cover
on a Collection Type calledCollectionItemExample
.And here is the
cover
node type (which isSTRAPI_MEDIA
):Beta Was this translation helpful? Give feedback.
All reactions