Using GraphQL on WordPress
summary
Live-codes a React/Gatsby site that swaps WordPress REST endpoints for wp graphql, replacing nine REST calls with one network request, cutting payload from about 13.7 kb to 1.6 kb and improving throughput roughly 10x. Uses wp graphql plugin with common clients (urql/apollo/gatsby source), maps GraphQL nodes to UI props, and the example builds and renders successfully locally with measurable latency and bandwidth gains.
AI-written summary · about
chapters (5)
- 0:00Start
- 3:04Building a site using the WP REST API
- 4:44Wrap REST API in GraphQL on the client
- 15:59WPGraphQL
- 17:14Credits
related talks
08mScaling WordPress with Next.js
10mRebuilding a 1,000-page website with only one developer
29mProduction Ready React with GatsbyJS
43mGraphQL in the wild
21mAPI-first Development with Headless WordPress
54mA Tinder Love Story: Create a Wordpress Blog with React, instead of PHP
27mBeyond Static: Dynamic Web Applications with Gatsby
27mConsume GraphQL API with Apollo Client and React
