Registering Types and Fields: Pair Programming with Jacob Arriola

On Thursday, March 26, 2020 I pair programmed with Jacob Arriola, Senior Web Engineer at Zeek Interactive. Zeek Interactive is a California-based software agency specializing in WordPress and Apple iOS. They recently moved their own marketing website from traditional WordPress to Headless WordPress with WPGraphQL as the API and Gatsby as the front-end. With the …

Forward and Backward Pagination with WPGraphQL

WPGraphQL makes use of cursor-based pagination, inspired by the Relay specification for GraphQL Connections. If you’re not familiar with cursor-based pagination it can be confusing to understand and implement in your applications. In this post, we’ll compare cursor-based pagination to page-based pagination, and will look at how to implement forward and backward pagination in a …

WPGraphQL v0.8.0

Release Notes TL;DR This release focuses on adjusting how Nodes are resolved to prevent errors in cases where the nodes are determined to be considered private and non-viewable by the requesting user. (#1138) More details below: Schema Breaking Changes Internal Breaking Changes New Features Release Summary Explanation of Changes to the Abstract Connection Resolver Schema …

Registering GraphQL Fields with Arguments

One of the most common ways to customize the WPGraphQL Schema is to register new fields. When registering fields, argument(s) can also be defined for the field. Field arguments in GraphQL allow input to be passed to the field, and when the field is resolved, the input of the field argument can be used to …