Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Enhancement: query also alternativeText and caption on images #160

Closed
catalina-cimpanu opened this issue Oct 28, 2020 · 8 comments
Closed

Comments

@catalina-cimpanu
Copy link

Hi!

Would it be possible to make also the alternativeText and caption be queried in graphQL from gatsby? That would be really cool.

I have it in the API
API-image

but I can't find it in the graphQL
graphql-image

Thank you!

@gmourier
Copy link

Yes, it would be very cool to have that to avoid creating a media component made of (file, and two string field for alt and caption) as they already exists

@RobHedley
Copy link

I have exactly the same problem where content editors are adding the images and alt text etc to Strapi but we are currently having to hard code the alt text and manually change it when they do. Obviously not ideal.

Would be good to get an update on a possible ETA for this issue.

@iassainov
Copy link

iassainov commented Feb 9, 2021

Surprised that such a basic feature is not available.

@TheDevDoctor
Copy link

Has anyone found a solution to this? Still can't access the caption or alt text via graphQl?

@altonalexander
Copy link

Glad i'm not the only one looking for a solution.

@assainov
Copy link

@TheDevDoctor @altonalexander It's available in the latest version of this library. I got it working. But there are breaking changes in the way how images are queries with GraphQL.

@richardgohcr
Copy link

@TheDevDoctor @altonalexander It's available in the latest version of this library. I got it working. But there are breaking changes in the way how images are queries with GraphQL.

@assainov What version of what library is this?

@assainov
Copy link

assainov commented Apr 4, 2021

@richardgohcr it's 1.0.0-alpha.0

@soupette soupette mentioned this issue Feb 11, 2022
11 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants