Skip to content

Commit

Permalink
fix(docs): GraphQL query indentation (#21687)
Browse files Browse the repository at this point in the history
  • Loading branch information
duffn authored Feb 24, 2020
1 parent 6979816 commit a05749b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/docs/testing-components-with-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,29 @@ you're using `gatsby-transformer-sharp` you'll find the fragments in
So, for example if your query includes:

```graphql
image {
childImageSharp {
fluid(maxWidth: 1024) {
...GatsbyImageSharpFluid
}
}
image {
childImageSharp {
fluid(maxWidth: 1024) {
...GatsbyImageSharpFluid
}
}
}
```

...it becomes:

```graphql
image {
childImageSharp {
fluid(maxWidth: 1024) {
base64
aspectRatio
src
srcSet
sizes
}
}
image {
childImageSharp {
fluid(maxWidth: 1024) {
base64
aspectRatio
src
srcSet
sizes
}
}
}
```

When you have the result, copy the `data` value from the output panel. Good
Expand Down

0 comments on commit a05749b

Please sign in to comment.