WPGraphQL is a free, open-source plugin that provides an extensible GraphQL schema and API for any WordPress site. Created by Jason Bahl, WPGraphQL transforms WordPress into a powerful headless CMS — pair it with a modern frontend like Next.js, Gatsby, or Astro for a JAMstack publishing platform.
The schema is generated from the WordPress content model and can be extended for custom post types, custom fields, ACF, and any plugin that exposes data.
GraphQL API for WordPress. Headless WordPress sites with Next.js, Gatsby, Astro, SvelteKit.
✨ Features
Posts, pages, users, taxonomies, comments, menus exposed via GraphQL. Out of the box.
Register custom types and fields via PHP. Plugins for ACF, Yoast, WooCommerce extend the graph.
JWT, OAuth, session-based auth. Public read by default, gated mutations with credentials.
Resolvers powered by Dataloader-style batching. N+1 queries avoided automatically.
First-class support for Faust.js, Atlas, Vercel WordPress starters. Modern frontends, classic CMS.