WPGraphQL

Descrição

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

Ecrãs

Perguntas frequentes

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 and WPGraphQL?

Gatsby employs Jason Bahl, the creator and maintainer of WPGraphQL. Gatsby believes that a strong GraphQL API for WordPress is a benefit for the web. Gatsby makes no restrictions on how you use WPGraphQL, however Gatsby is investing a lot into making the Gatsby + WordPress experience a great one, and WPGraphQL is a central part of that experience.

Avaliações

8 de Janeiro, 2021
GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT! GREAT!
9 de Dezembro, 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 de Dezembro, 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 de Dezembro, 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.
2 de Dezembro, 2020
Trying to work with the WordPress API after a client switched from contentful was a stressful mess. They loved using WordPress but the API made creating a flexible JAMstack site with it difficult. That was until I found WPGraphQL. After that point my API issues where solved. Everything was logical and easy to access. It makes huge improvements instead of just wrapping the rest API with a graphql layer. I stopped worrying about my API and focused on making the best site I could.
Ler todas as 36 avaliações

Contribuidores e programadores

“WPGraphQL” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

Traduza o “WPGraphQL” para o seu idioma.

Interessado no desenvolvimento?

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

Registo de alterações

See Release Notes