WPGraphQL

Description

WPGraphQL is a free, open-source WordPress plugin that provides an extendable GraphQL schema and API for any WordPress site.

Below are some links to help you get started with WPGraphQL

Build rich JavaScript applications with WordPress and GraphQL

WPGraphQL allows you to separate your CMS from your presentation layer. Content creators can use the CMS they know, while developers can use the frameworks and tools they love.

WPGraphQL works great with:

Query what you need. Get exactly that.

With GraphQL, the client makes declarative queries, asking for the exact data needed, and in exactly what was asked for is given in response, nothing more. This allows the client have control over their application, and allows the GraphQL server to perform more efficiently by only fetching the resources requested.

Fetch many resources in a single request.

GraphQL queries allow access to multiple root resources, and also smoothly follow references between connected resources. While typical a REST API would require round-trip requests to many endpoints, GraphQL APIs can get all the data your app needs in a single request. Apps using GraphQL can be quick even on slow mobile network connections.

Powerful Debugging Tools

WPGraphQL ships with GraphiQL in your WordPress dashboard, allowing you to browse your site’s GraphQL Schema and test Queries and Mutations.

Upgrading

It is recommended that anytime you want to update WPGraphQL that you get familiar with what’s changed in the release.

WPGraphQL publishes release notes on Github.

WPGraphQL has been following Semver practices for a few years. We will continue to follow Semver and let version numbers communicate meaning. The summary of Semver versioning is as follows:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards compatible manner, and
  • PATCH version when you make backwards compatible bug fixes.

You can read more about the details of Semver at semver.org

Screenshots

FAQ

Can I use WPGraphQL with xx JavaScript Framework?

WPGraphQL turns your WordPress site into a GraphQL API. Any client that can make http requests to the GraphQL endpoint can be used to interact with WPGraphQL.

Where do I get WPGraphQL Swag?

WPGraphQL Swag is available on the Gatsby Swag store.

What’s the relationship between Gatsby, WP Engine, and WPGraphQL?

WP Engine is the employer of Jason Bahl, the creator and maintainer of WPGraphQL. He was previously employed by Gatsby.

You can read more about this here.

Gatsby and WP Engine both believe that a strong GraphQL API for WordPress is a benefit for the web. Neither Gatsby or WP Engine are required to be used with WPGraphQL, however it’s important to acknowledge and understand what’s possible because of their investments into WPGraphQL and the future of headless WordPress!

Reviews

8 jannewaris, 2021
GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT!
9 desimber, 2020
WPGraphQL is an incredible feat of engineering that opens so many doors for WordPress! You can use WPGraphQL to make WordPress installs interact and share data between themselves, you can use WPGraphQL to power headless WordPress sites and you can use WPGraphQL to have WordPress interact with any number of other tools and applications. Deployed in production on some massive, mission-critical, enterprise sites and with a strong focus on best practices as well as having been security audited, you can also install WPGraphQL with a high degree of confidence. With great documentation, a complete changelog, a stable 1.0 release and a growing community, WPGraphQL is also something you'll enjoy learning and using!
9 desimber, 2020
I wish I could build ALL my sites with this! WPGraphQL makes it so simple, clean and FAST to query exactly the data we need (and only that data) for our WordPress-based web apps. There is no way we could have built our custom tutorial platform as efficiently without it. GraphQL is so much easier to use and more lightweight than REST API - I wouldn't be surprised to see this plugin baked into WP Core in future. An essential framework for anyone looking to modernise their WordPress sites and a great way for WP to stay relevant as web technologies continue to evolve. For more info on how we used WPGraphQL in one of our projects - see my talk from WordCamp BNE 2019, titled "Building a hybrid JavaScript app for WordPress (how & why we embedded our SPA without going completely Headless)" 🙂
7 desimber, 2020
WPGraphQl was in it's early stages when I was building a GatsbyJS website using the rest api and wasn't yet ready to be used. This year I replaced the Rest API that I spent weeks building with WPGraphQL and only spent 1 day updating the codebase for it to work. I also use it to give 3rd party APPs access to data from my websites and instead of needing to create/use multiple custom endpoints for the additional ACF fields, WPGraphQl just works with it all. It handles the post type relationships amazingly well. I can't stress how much time this plugin has saved me on dev. GraphQl may take time to learn but the time spent learning new tech will save you days of dev when using this plugin.
Read all 37 reviews

Contributors & Developers

“WPGraphQL” is open source software. The following people have contributed to this plugin.

Contributors

Translate “WPGraphQL” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

See Github Changelog