Customizing GraphQL Cache Keys

WPGraphQL Smart Cache is quickly becoming the standard solution for fast and accurate data when using WPGraphQL for decoupled applications. Since launching in December 2022, it’s grown to 500+ active users! While it solves a lot of problems for a lot of users, it’s not perfect and might require customization. In this blog post, we’re …

Introducing WPGraphQL Smart Cache

WPGraphQL is fast becoming the standard for building decoupled WordPress websites and applications. Most of the official WordPress boilerplates for JavaScript frameworks such as NextJS and Gatsby use WPGraphQL as the data source.. Developers are choosing WPGraphQL for decoupling their projects because of the flexibility it provides, the control it gives the client developer, the …

New Post Type and Taxonomy Registration options

WPGraphQL makes it easy to expose Custom Post Types and Taxonomies to the GraphQL Schema. WPGraphQL v1.12.0 introduces new options for how your post types and taxonomies are added to the WPGraphQL Schema. If you’re already familiar with how registering post types and taxonomies to GraphQL works, go ahead and skip to the new options …

Tutorial: Registering a Custom Post Type as a GraphQL Interface

WPGraphQL v1.12.0 introduces new options for customizing how Post Types and Taxonomies are exposed to the WPGraphQL Schema. The goal of this post is to show how to use some of these options in action. You can read this post for an overview of all the options, or check out the release.. To do that, …

Adding End 2 End Tests to WordPress plugins using wp-env and wp-scripts

I recently published a video walking through how End to End tests are set up for WPGraphQL, but I thought it would be good to publish a more direct step-to-step tutorial to help WordPress plugin developers set up End 2 End tests for their own WordPress plugins. Setting up End to End tests for WordPress …

Query any page by its path using WPGraphQL

One of the most common ways WordPress is used, is by users visiting a URL of a WordPress site and reading the content on the page. WordPress has internal mechanisms that take the url from the request, determine what type of entity the user is requesting (a page, a blog post, a taxonomy term archive, …

Building a Bookstore using WordPress, WPGraphQL and Atlas Content Modeler

In this post, we’ll look at how we can create a simple Book Store using WordPress, WPGraphQL and Atlas Content Modeler, a new plugin from WP Engine that allows Custom Post Types, Custom Taxonomies and Custom Fields to be created in the WordPress dashboard and allows the data to be accessed from WPGraphQL. By the …

Getting started with WPGraphQL and Gridsome

This is a guest post by @nicolaisimonsen Gridsome is a Vue.js framework for building static generated sites/apps. It’s performant, powerful, yet simple and really faaaaast. Gridsome can pull in data from all sorts of data-sources like CMSs, APIs, Markdown etc. It has a lot of features. Go check ’em out. Since GraphQL is so efficient …

Gutenberg and Decoupled Applications

In this article I want to dive into the current state of Gutenberg and WPGraphQL. This is a technical article about using Gutenberg blocks in the context of decoupled / headless / API-driven WordPress, and makes the assumption that you already know what Gutenberg is and have some general understanding of how it works. TL;DR …