Yesterday I talked about GraphQL on WordPress, for WordCamp India 2021. I explored these topics:
👉🏽 What is GraphQL? 👉🏽 How is it different from REST? 👉🏽 How do we use it with WordPress?
Alongside, I did a demo of the GraphQL API for WordPress plugin. It's all me showing how to use the plugin in the wp-admin, for some 30 min.
Here is the video:
The following features were covered:
✅ The GraphiQL and Voyager clients ✅ Persisted queries ✅ Passing parameters by URL to the persisted query ✅ HTTP caching ✅ Access control ✅ Making the API public and private
We also had a Q&A session, which lasted 15 min. Here is the video:
The Q&A include the following questions, and at what time they appear:
❓ Will the hosting provider support GraphQL, or do we need to manage it on our own? (1:25) ❓ How extensible is it, compared to the WP REST API? (1:55) ❓ Is multilingual search supported in GraphQL? (answer is not clear, connection problems) (2:39) ❓ How do we secure the GraphQL API? (3:48) ❓ Why is the GraphQL API for WordPress plugin not officially available in the WordPress plugin repository? (6:48) ❓ What is the limit for GraphQL? (8:08) ❓ If somebody wants to dive into GraphQL, what's your advice for them? (10:21) ❓ What can we expect from you should you present a new talk about GraphQL in another WordCamp? (12:08)
As I mentioned at the end of the Q&A, if you like what you see, and you'd like to learn more, or get your hands dirty using it and need help, send me an email or DM on Twitter. I'm generally available, and always thrilled to work on the combination of WordPress and GraphQL 🙏
I hope you've enjoyed the demo 😀
Need help? Integrate GraphQL into your WordPress plugin, with us!
Have your users query your plugin's data through GraphQL
Add your CPTs to the schema, interact with 3rd-party services
Bundle a scoped version of this plugin, within your plugin