Several weeks ago 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 enjoy the demo π
Top comments (0)