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
type SanityImageAsset implements Node & Image {
id: ID
alt: String @proxy(from: "altText")
gatsbyImageData: GatsbyImageData
url: String
}
I'm able to type a single Image like image: Image @link(by: "id", from: "image.asset._ref"), however when I try and do the same for an array of images images: [Image] @link(by: "id", from: "images.asset._ref") I'm getting the error GraphQLError: Runtime Object type "SanityImage" is not a possible type for "Image".
The text was updated successfully, but these errors were encountered:
Since it's happening at runtime and only for an array of images, I'm not really sure what the issue is but seems like a bug with the generated graphql schema from gatsby-source-sanity
After defining an Image interface:
and the SanityImageAsset type:
I'm able to type a single Image like
image: Image @link(by: "id", from: "image.asset._ref")
, however when I try and do the same for an array of imagesimages: [Image] @link(by: "id", from: "images.asset._ref")
I'm getting the errorGraphQLError: Runtime Object type "SanityImage" is not a possible type for "Image".
The text was updated successfully, but these errors were encountered: