Gatsby & WordPress - 2.7. - Yoast SEO and WPGraphQL
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 short video, we cover the core concepts of what Yoast SEO provides us to our schema and how we can access the Yoast SEO fields using a GraphQL query.
SEO is of major importance in any modern website application and we don't want to lose the benefits that we would get over a traditional WordPress setup.
By using the Yoast SEO plugin and WPGraphQL Yoast plugin we can import the data into our Gatsby application to generate HTML head tags in our custom SEO React component.