gatsby-wpgraphql-inline-images icon indicating copy to clipboard operation
gatsby-wpgraphql-inline-images copied to clipboard

Objects type error after upgrading to WPGraphql latest version 0.10.0

Open jerome281 opened this issue 4 years ago • 0 comments

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

jerome281 avatar Jun 30 '20 20:06 jerome281