I've been advocating this approach to WordPress for the past year :) thanks for bringing more awareness to this awesome stack, but you missed the most important point of all - the WordPress GraphQL plugin!! github.com/wp-graphql/wp-graphql
With one-click, you have programmatic access to all WordPress' features via GraphQL. What a time we live in.
I'm actually not using that plugin at all. I went the route of gatsby-source-wordpress, but more on that in post 4 ;)
Oh man you should at least check out the new GraphQL plugin for WordPress! It's made by Gatsby 😍🍻
Either way I love Gatsby
Definitely check out WPGraphQL (github.com/wp-graphql/wp-graphql)! Gatsby's new WordPress Source plugin will deprecate support for the WP REST API and will use WPGraphQL on the WordPress Server.
You can read more about it here: github.com/gatsbyjs/gatsby/issues/...
What's the best way ? wait for the v4 or use the gastby-source-graphql plugin ?
Like most things in tech: "It depends"
If you have something you need to deliver now, I'd probably suggest using WPGraphQL + Gatsby Source GraphQL.
If you're just experimenting and looking for long term structure, I'd probably wait for the new source plugin as that will have a lot of things specifically optimized for the Gatsby + WordPress experience.
Very fair ! Thanks Jason.
Fair enough! Look forward to your series :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.