:rocket: GraphQL API for WordPress
Unlock the power of WordPress data with GraphQL
WPGraphQL provides an extendable GraphQL API for any WordPress site, unlocking modern development workflows.
Whether you're a WordPress developer exploring GraphQL or a GraphQL expert diving into WordPress, WPGraphQL simplifies data interaction and empowers your development workflow.
This is a monorepo containing the WPGraphQL ecosystem of plugins and websites:
wp-graphql/
├── plugins/
│ ├── wp-graphql/ # WPGraphQL core plugin
│ ├── wp-graphql-ide/ # IDE extension plugin
│ ├── wp-graphql-smart-cache/ # Smart Cache extension plugin
│ └── wp-graphql-acf/ # ACF extension plugin
├── websites/
│ └── wpgraphql.com/ # WPGraphQL.com Next.js website
├── design/
│ └── brand/ # Product-family brand guides + wp.org asset generators
├── .wp-env.json # Shared WordPress environment config
├── package.json # Root workspace configuration
└── turbo.json # Turborepo build orchestration
For end users: Nothing changes! Install WPGraphQL from WordPress.org, Composer, or download the release zip.
For contributors: Clone the repo and run:
npm install # Install dependencies (uses workspaces)
npm run wp-env start # Start WordPress environment with all plugins
📚 See the Development Guide for detailed setup instructions.
WPGraphQL aims to be the canonical GraphQL API for WordPress, providing:
In scope:
Candidates for core (via Experiments):
Better as extensions:
The difference: Experiments are potential core features being validated. Extensions are intentionally separate functionality that should remain as plugins. Experiments may graduate to core or be removed; extensions live independently forever.
This focus keeps WPGraphQL maintainable while enabling a rich ecosystem of extensions.
wp plugin install wp-graphql --activateregister_graphql_field and register_graphql_connection.
Connection filters ignore a malformed ID and return unfiltered results
https://github.com/wp-graphql/wp-graphql/issues/4792
Labels: type: bug, effort: med, impact: med, scope: api
Root fields and mutations accept a global ID of any type and use only its number
https://github.com/wp-graphql/wp-graphql/issues/4788
Labels: type: bug, effort: med, impact: med, scope: api
Smart Cache doesn't purge cached responses for post types registered as a GraphQL interface or union
https://github.com/wp-graphql/wp-graphql/issues/4785
Labels: type: bug, effort: med, impact: med, status: actionable, scope: performance, plugin: core, plugin: smart-cache
Taxonomies registered as a GraphQL interface or union fail when queried through node, termNode or terms
https://github.com/wp-graphql/wp-graphql/issues/4784
Labels: type: bug, effort: low, impact: low, status: actionable, component: interfaces, scope: api, plugin: core
RFC: MediaItem as an interface, with separate types for images, video, audio and other files
https://github.com/wp-graphql/wp-graphql/issues/4763
Labels: component: architecture, needs: discussion, compat: breaking change, type: feature, effort: high, impact: med, component: interfaces, scope: api, object type: media, plugin: core
Cached lists aren't purged when a new post is published for a post type registered as a GraphQL interface (WooCommerce products)
https://github.com/wp-graphql/wp-graphql/issues/4762
Labels: type: bug, effort: low, impact: med, status: actionable, scope: performance, plugin: core, plugin: smart-cache
WPGraphQL welcomes community contributions, bug reports and other constructive feedback.
When contributing please ensure you follow the guidelines below so that we can keep on top of things.
📚 Full Contributing Guide: For comprehensive documentation on contributing, including development setup, testing, and the release process, see docs/CONTRIBUTING.md.
main branch of this repositoryAt this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary.
We use a single GitHub Project Board to manage issue triage across the WPGraphQL organization. The board provides various filtered views to help with different aspects of the triage process.
Main Project Board: WPGraphQL Issue Triage
The project board includes the following filtered views to help with triage:
The following are handled automatically by our CI/CD workflows. Please do not manually edit these:
| What | Where | Automated By |
|---|---|---|
| Version numbers | constants.php, wp-graphql.php, package.json, readme.txt | release-please |
@since tags | PHP files | release-please (replaces x-release-please-version) |
| Changelog entries | CHANGELOG.md | release-please |
| Upgrade Notice | readme.txt | update-release-pr.yml workflow |
next branchmain is the current stable (2.x) release line. Breaking changes (feat!: / fix!: / perf!:) for the next major (e.g. 3.0) are collected on the long-lived next branch — which cuts release candidates — not main, where they would force the next release to be a major. Open breaking-change PRs against next. See the full Contributing guide.
When a release contains breaking changes (commits with feat!:, fix!:, or perf!: prefix):
CHANGELOG.md under ### ⚠ BREAKING CHANGES== Upgrade Notice == section in readme.txtFixes that change behavior someone may rely on are not breaking changes, so they use fix:, not fix!:, and no notice is generated for them. Write one by hand in the fix PR instead: add a = X.Y.Z = entry under == Upgrade Notice == in the plugin's readme.txt, using the version from the plugin's open release PR, and say in the PR description which version it targets, since it has to move if that release goes out first. Add it on main, never on the release-please branch, which is force-pushed. The automation leaves hand-written notices alone, and they are added to the GitHub release notes the same way.
**⚠️ Don't ha