

GraphQL and WordPress
Jul 10, 2019
Join Jason Bahl, the author of WPGraphQL and WordPress veteran, as he dives into the exciting world of GraphQL and its transformative impact on WordPress. He discusses the benefits of using GraphQL over the traditional REST API, particularly for efficient data retrieval and streamlined workflows. The conversation also touches on hosting options, authentication methods, and the joys of headless WordPress setups. Additionally, Jason shares insights on using custom post types and the potential of GraphQL for real-time updates, making it a must-listen for developers!
AI Snips
Chapters
Transcript
Episode notes
Syndication Challenges with REST API
- Jason Bahl's team used WordPress's REST API for content syndication across a network of newspapers.
- However, it proved inefficient, taking up to three minutes to syndicate a single article due to multiple network requests.
Discovering GraphQL
- Jason Bahl discovered GraphQL while exploring Meteor and Apollo, initially without a specific use case.
- The inefficiencies of the REST API for content syndication led him to consider GraphQL as a solution.
GraphQL Efficiency
- A common criticism of GraphQL is the potential for writing inefficient database queries due to its opaque resolution process.
- However, WP GraphQL leverages the known data requirements to optimize queries and enhance efficiency.