[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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When attaching an image to a media field in the Strapi Content Manager, we have the option to add an
alternativeTextandcaption, 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
coveron a Collection Type calledCollectionItemExample.And here is the
covernode type (which isSTRAPI_MEDIA):Beta Was this translation helpful? Give feedback.
All reactions