wp-graphql / wp-graphql
GraphQL API for WordPress
Installs: 336 770
Dependents: 15
Suggesters: 5
Security: 2
Stars: 3 714
Watchers: 68
Forks: 454
Open Issues: 121
Type:wordpress-plugin
Requires
- php: ^7.4 || ^8.0
- appsero/client: 2.0.4
- ivome/graphql-relay-php: 0.7.0
- webonyx/graphql-php: 15.20.0
Requires (Dev)
- automattic/vipwpcs: ^3.0
- codeception/module-asserts: ^1.0
- codeception/module-cli: ^1.0
- codeception/module-db: ^1.0
- codeception/module-filesystem: ^1.0
- codeception/module-phpbrowser: ^1.0
- codeception/module-rest: ^1.2
- codeception/module-webdriver: ^1.0
- codeception/util-universalframework: ^1.0
- composer/semver: ^3.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- lucatume/wp-browser: <3.5
- phpcompatibility/php-compatibility: dev-develop as 9.9.9
- phpcompatibility/phpcompatibility-wp: ^2.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ~2.1.2
- phpstan/phpstan-deprecation-rules: ^2.0.1
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^8.9
- szepeviktor/phpstan-wordpress: ~2.0.1
- wp-cli/wp-cli-bundle: ^2.8
- wp-graphql/wp-graphql-testcase: ^3.0
- dev-develop
- v2.3.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- v2.0.0-beta.2
- v2.0.0-beta.1
- v1.32.1
- v1.32.0
- v1.31.1
- v1.31.0
- v1.30.0
- v1.29.3
- v1.29.2
- v1.29.1
- v1.29.0
- v1.28.1
- v1.28.0
- 1.27.2
- v1.27.1
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.1
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.2
- v1.18.1
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.10
- v1.14.9
- v1.14.8
- v1.14.7
- v1.14.6
- v1.14.5
- v1.14.4
- v1.14.3
- v1.14.2
- v1.14.0
- v1.13.10
- v1.13.9
- v1.13.8
- v1.13.7
- v1.13.6
- v1.13.5
- v1.13.4
- v1.13.3
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.3
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.12
- v1.6.11
- v1.6.10
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.7
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.10
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- 1.2.2
- v1.2.1
- v1.2.0
- v1.1.8.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0
- v0.15.6
- v0.15.5
- v0.15.4
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.3
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.01
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.34
- v0.0.33
- v0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- 0.0.5
- 0.0.3
- 0.0.2
- dev-fix/missed-since-tags
- dev-master
- dev-feat/3354-lazy-loading-configs
- dev-dependabot/npm_and_yarn/npm_and_yarn-5fd3f5d1d2
- dev-jasonbahl-patch-2
- dev-jasonbahl-patch-1
- dev-changeset-collection
- dev-fix/generate-changeset-duplicate-prs
- dev-feat/changesets
- dev-release/v2.0.1
- dev-patch-1
- dev-docs/v2-changelog
- dev-release/v2.0.0-beta.1
- dev-release/v1.31.0
- dev-fix/update-deploy-workflow
- dev-fix/update-deploy-to-wordpress.yml
- dev-release/v1.30.0
- dev-feat/3049-extensions-page-fix
- dev-fix/3269-default-cat-should-not-be-added-when-other-categories-are-added
- dev-fix/3238-terms-not-resolving-for-preview-posts
- dev-chore/update-docs
- dev-fix/upgrade-guide-formatting
- dev-devops/wp-graphql-testcase-update
- dev-feat/1757
- dev-v2.0/develop
This package is auto-updated.
Last update: 2025-06-02 20:32:53 UTC
README
WPGraphQL
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.
🚀 Get Started
- 📦 Install WPGraphQL:
wp plugin install wp-graphql --activate
- 👩💻 Try it out: Live Demo
- 📖 Read the Quick Start Guide.
- 💬 Join the Community on Discord
- ⭐ Star the Repo on GitHub 😉
🌟 Key Features
- Flexible API: Access posts, pages, custom post types, taxonomies, users, and more.
- Extendable Schema: Easily add functionality with functions like
register_graphql_field
andregister_graphql_connection
.- Plugins like WPGraphQL Smart Cache, WPGraphQL for ACF and other extension plugins demonstrate the power of extendability.
- Modern Framework Integration: Works seamlessly with Next.js, Svelte, Astro and other frameworks.
- Optimized Performance: Query only the data you need. Collect multiple resources in one request, reducing round-trips. Use WPGraphQL Smart Cache for enhanced performance and network-level caching and cache-invalidation.
- Developer Tools: Explore the schema with tools like the GraphiQL IDE and WordPress Playground.
📖 Documentation
🤝 Community Support
WPGraphQL is powered by a passionate community of contributors, backers, and sponsors.
Want to help maintain and grow WPGraphQL?
- Support the project on Open Collective
- Join the Community on Discord
- Contribute to the project on GitHub
🙌 Shout Outs
We extend our gratitude to the following projects and organizations for their contributions to the WordPress and GraphQL ecosystems:
- Webonyx: For the amazing
graphql-php
library that powers WPGraphQL's core functionality. - Ivome: For the
graphql-relay-php
library used in relay connections. - Automattic: For supporting WPGraphQL's ongoing development as a canonical WordPress plugin.
- Gatsby: For their contributions to the WPGraphQL ecosystem and support for headless WordPress development.
- WPEngine: For funding early development of WPGraphQL and supporting its growth.
- Facebook: For open-sourcing the GraphQL spec, GraphiQL, and maintaining the JavaScript reference implementation.
- Apollo: For pushing GraphQL forward and inspiring schema design best practices.
- The WordPress REST API Contributors: For paving the way with the WP-API project, inspiring WPGraphQL's architecture.
Thank you to all these organizations and individuals for their efforts in shaping the tools we rely on today.
🔌 Canonical Plugin
WPGraphQL is becoming a Canonical Plugin on WordPress.org, ensuring long-term support and a growing community of users and contributors.
🛠 Privacy & Telemetry
WPGraphQL uses the Appsero SDK to collect telemetry data only after user consent, helping us improve the plugin responsibly.