Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt text doesn't appear to be accessible in GraphQL #26

Open
tkatchenko opened this issue Mar 14, 2021 · 0 comments
Open

Alt text doesn't appear to be accessible in GraphQL #26

tkatchenko opened this issue Mar 14, 2021 · 0 comments

Comments

@tkatchenko
Copy link

When I run *[_type == 'sanity.imageAsset']{alt} in the Sanity studio Vision tab I get a list of image assets and their alt text but when I run:

{
  allSanityImageAsset {
    alt
  }
}

in the deployed GraphQL playground, I get a "Cannot query field 'alt' on type 'SanityImageAsset'.".

Is this the correct structure for the getting the alt text? Not sure if I'm missing something as I can't seem to find it via GraphQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant