Gatsby & WordPress - 2.5. - ACF and GraphQL

by Jack Pritchard

Hey! This post's a little over two years old now, so some of what's here might be out of date. Still worth a read, but if anything really matters to you, it's worth double-checking against a newer source too.

In this video I'll be covering ACF and the WPGraphQL plug-in, and how we can raise some of the ACF fields on custom post types into the schema.

I've gone ahead and synchronized my database with my current live environment so I've got access to a ton of actual data now to preview some demos. I've got access to my media, pages, and case studies.

I'll be looking at the event post types specifically in this video where I have some advanced custom fields for every event that I create -

By default, these custom fields don't show in our Schema but I'll be going into how you can configure the field groups so that they are risen in our schema and accessible in our GraphQL queries.

WPGraphQL for ACF has changed considerably since this was recorded — check its current documentation for how field groups are configured today.