score:2

Accepted answer
  image: file(relativePath: {eq: "free-time.jpg"}) {
    childImageSharp {
      gatsbyImageData
    }
  }

score:-1

 const img = getImage(data.file);

 <GatsbyImage image={img} />

Related Query

More Query from same tag