The GraphQL API for WordPress enables to access the WordPress site data using GraphQL. It has been designed for security, speed and ease of use:

  • Create multiple endpoints for different applications (website, mobile app, etc)
  • Configure who can access the data through Access Control Lists (user being logged-in or not, having certain role or capability, custom rules)
  • Publish persisted queries exposing a predefined set of data, provide inputs through URL params
  • Cache the response via native HTTP caching
  • Code and publish the query right from within the WordPress editor

In other words, the plugin combines the ease of use of WordPress for creating and publishing the queries, the great experience from GraphQL for querying the data, and the security and speed from REST.

The plugin will be released on early May. This presentation is the avant release for the plugin. We will explore the features of this new plugin, demoing how to create custom endpoints and persisted queries, how to set-up Access Control Lists on a field by field basis, and how to configure HTTP caching.

The GraphQL API for WordPress is based on GraphQL by PoP, the CMS-agnostic GraphQL server for PHP.

 

Also presented at...

Nowhere, this is a new talk

Classifiers

Track Audience(s) Experience Level Tags
Back End Development
DevOps & Misc Development
Sitebuilding
Developers (Back-end php focused)
Developers (Front-end focused)
Developers (Javascript focused)
DevOps Engineers, Tech Leads, Lead Developers
Intermediate
PHP
Wordpress
GraphQL

Scheduling Information

9:00am - 9:50am
, Assorted

About the Presenter

Leonardo Losoviz

Leonardo Losoviz is an open source developer and technical writer, with an ongoing quest to integrate innovative paradigms (Serverless PHP, server-side components, GraphQL) into existing PHP frameworks (WordPress, Symfony, Laravel), and unifying all of them into a single mental model.

He publishes his tutorials, tips, gotcha moments, and random insights, on the publication php[architect], on online magazines Smashing Magazine, the LogRocket blog and Design Bombs, and on his own blog leoloso.com.

Connect & Follow

Session Recording

This Session's Recording