WordPress without Head is the latest trend. This workflow is better in several ways. There are plenty of resources about the pros of the Headless WordPress approach. This is just one: Why WordPress Users Should Consider Headless
However, I am going to learn GraphQL not only academic benefits but also broadens my skill.
First, create a folder for WordPress. I name it
backend. Then, I install WordPress in this folder as usual way. In this WordPress, install and activate these plugins.
- Advanced Custom Field
- Headless CMS
- Yoast SEO
- WPGraphQL Yoast SEO Addon
Then install WPGraphQL JWT Authentication plugin. To use this plugin, use google API keys ( public key, secret key ) on the setting page.
Then install WPGraphQL Gutenberg. Activate it and update a Gutenberg post or page. If not updating any Gutenberg post, it will show an error in the endpoint and in GraphiQL IDE.