Gatsby & WordPress - 3.3. - Querying in a Page
Hey! This post's a little over two years old now, so some of what's here might be out of date. Still worth a read, but if anything really matters to you, it's worth double-checking against a newer source too.
In this video, we look at querying our GraphQL schema directly within a Gatsby page template. The Gatsby GraphQL queries are handled by the
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.