Skip to content

Commit

Permalink
Update for v2 (#9518)
Browse files Browse the repository at this point in the history
Noticed this while referencing this page for another project. Remove reference to Layout components and mention StaticQuery.

<!--
  Q. Which branch should I use for my pull request?
  A. Use `master` branch (probably).

  Q. Which branch if my change is a bug fix for Gatsby v1?
  A. In this case, you should use the `v1` branch

  Q. Which branch if I'm still not sure?
  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
  • Loading branch information
m-allanson authored and DSchau committed Oct 29, 2018
1 parent c6dce1c commit 553ad80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/docs/querying-with-graphql.md
Expand Up @@ -80,8 +80,7 @@ The result of the query is automatically inserted into your React component
on the `data` prop. GraphQL and Gatsby let you ask for data and then
immediately start using it.
_Note:_ Queries are only executed from Page or Layout components. For other
components you'll want to use GraphQL [_fragments_](#fragments).
_Note:_ To run GraphQL queries in non-page components you'll need to use [Gatsby's Static Query feature](/docs/static-query/).
## How to learn GraphQL
Expand Down

0 comments on commit 553ad80

Please sign in to comment.