Skip to content

Commit

Permalink
docs: Add a note about gatsby-image fragments not working in Graphi…
Browse files Browse the repository at this point in the history
…QL (#25387)

* Add a note about queries not working in GraphiQL

This is a known issue, but it could confuse new Gatsby users (like myself).

[See the `gatsby-image` docs for details](https://www.gatsbyjs.org/packages/gatsby-image/#fragments), and [this GraphiQL issue for progress on a fix](graphql/graphiql#612).

* chore: format

* Update docs/tutorial/gatsby-image-tutorial/index.md

Co-authored-by: Yogi <me@yogi.codes>

* Fix relative link

Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
Co-authored-by: Yogi <me@yogi.codes>
Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>
  • Loading branch information
5 people committed Jul 9, 2020
1 parent 2be3cb3 commit c6593b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial/gatsby-image-tutorial/index.md
Expand Up @@ -91,6 +91,8 @@ export const query = graphql`
`
```

_**Note:** This query won't work in GraphiQL as it doesn't support implicit fragments. This will work in your Gatsby pages and components. [See the `gatsby-image` docs for more details](/packages/gatsby-image/#fragments)._

There are a couple of things to note here.

### Relative image paths and `gatsby-config.js`
Expand Down

0 comments on commit c6593b9

Please sign in to comment.