Originally asked by @amreshabux on the main WPGraphQL repo: wp-graphql/wp-graphql#1079
Hey!
Are you using the WPGraphQL for ACF plugin?
If so, make sure to set the field group to show_in_graphql => true
and provide a graphql_field_name
.
For example, I created a Field Group called "Group Test" and I registered a "Group" field (also named "Group Test"):

And I made sure to set the group to show_in_graphql => true
and I provided the field name groupTest
.

Since the group is assigned to the post_type => post
location, the groupTest
field will now be available in the Schema on the Post
Type.
I have a Group field registered, also named Group Test
and in that Group field I added a text field, cleverly named "text".
I created a Post and saved a value within the "text" field.

I can now query for that "text" field on the "group" field like so:
