progital / gatsby-wpgraphql-inline-images

Solution for Gatsby and WPGraphQL sourced content. Downloads images locally.
MIT License
35 stars 12 forks source link

Objects type error after upgrading to WPGraphql latest version 0.10.0 #35

Open jerome281 opened 4 years ago

jerome281 commented 4 years ago

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
        }
      }
    }
  }