Skip to content

Commit

Permalink
sync with monorepo gatsbyjs/gatsby@c6593b9 - docs: Add a note about `…
Browse files Browse the repository at this point in the history
…gatsby-image` fragments not working in GraphiQL (#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 <[email protected]>

* Fix relative link

Co-authored-by: gatsbybot <[email protected]>
Co-authored-by: Ward Peeters <[email protected]>
Co-authored-by: Yogi <[email protected]>
Co-authored-by: Aisha Blake <[email protected]>
  • Loading branch information
5 people committed Jul 9, 2020
1 parent dfc89f5 commit caff768
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial/gatsby-image-tutorial/index.md
Original file line number Diff line number Diff line change
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 caff768

Please sign in to comment.