gatsby-wpgraphql-inline-images
gatsby-wpgraphql-inline-images copied to clipboard
Objects type error after upgrading to WPGraphql latest version 0.10.0
I've just updated WPGraphql to the latest version 0.10.0
I'm getting this error:
Fragment "GatsbyImageJobQuery" cannot be spread here as objects of type "NodeWithFeaturedImageToMediaItemConnectionEdge" can never be of type "MediaItem".
Here my fragment:
fragment GatsbyImageJobQuery on WPGraphQL_MediaItem {
altText
sourceUrl
imageFile {
childImageSharp {
fixed(width: 120, height: 120) {
srcSetWebp
tracedSVG
...GatsbyImageSharpFixed
}
}
}
}