Gatsby & WordPress - 3.3. - Querying in a Page
Hey! Just so you know, this article is over 2 years old. Some of the information in it might be outdated, so take it with a grain of salt. I'm not saying it's not worth a read, but don't take everything in it as gospel. If you're curious about something, it never hurts to double-check with a more up-to-date source!
In this video, we look at querying our GraphQL schema directly within a Gatsby page template. The Gatsby GraphQL queries are handled by the `graphql'package that Gatsby provides us.
We create a demo query which asks for information regarding our WordPress posts. With the JSON response, we then render some blog posts slugs to the page.