You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
I'm having a real weird issue when trying to get alternate text that is attached to media in my graphql query... If I set the media up as a single type
I then don't get any alternativeText avaliable in the graphql query builder
However if I set the media type to be multiple
In my graphql builder the alternativeText field is there.
It seems to be impossible to get alternativeText when the media is a 'single media' type, is there any way around this or is it a bug?
I'd like to bump this. It's also an issue I'm seeing on my project and it's very frustrating to either be unable to use the built-in alt and caption, or to be forced to use multiple image type fields all over my project, even where I only need one.
I see this as well when I use media types within a single-type or a component type. It's like there's a whitelist of attributes or something. Querying my Strapi endpoint directly with GraphQL (not using gatsby) shows me all the attributes I expect to see. So my solution has been to stop using gatsby-source-strapi and use instead gatsby-source-graphql. https://www.gatsbyjs.com/plugins/gatsby-source-graphql/
Summary
I'm having a real weird issue when trying to get alternate text that is attached to media in my graphql query... If I set the media up as a single type
I then don't get any alternativeText avaliable in the graphql query builder
However if I set the media type to be multiple
In my graphql builder the alternativeText field is there.
It seems to be impossible to get alternativeText when the media is a 'single media' type, is there any way around this or is it a bug?
System:
OS: Ubuntu 16.04.6 LTS
Binaries:
Node: v10.18.1
npm: v6.13.4
npmGlobalPackages:
gatsby-cli: 2.22.15
gatsby-source-strapi: 0.0.12
The text was updated successfully, but these errors were encountered: