-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Description
Hi,
I am trying to migrate from the old WPGraphQL for Advanced Custom Fields plugin to the new WPGraphQL for ACF plugin.
After switching the plugins I run into the following issue.
I have a Flexible content ACF field called slides that holds different types of slides, as you guessed.
All items within this field group have the same scaffold:
- Content (tab)
- Content (group)
- Meta (tab)
- Meta (group)
- Settings (tab)
- Settings (group)
When looking at the slides definition in the Query Composer, it seems that the definition of these groups are overwritten for each slide definition and ends up being the top definition for all slides. As you can see in the screenshot the items are existent in the SlidesItemsType8Layout definition (which is correct), but also in the SlidesItemsType3Layout definition -> which shows up in the Query composer, but is not existent in this slide content group definition. Also, other specific fields for a slide, in this case sentences are not present:

When updating a slide content group to an unique name, like content3 for the third slide it shows up correctly in the Query composer, but the GraphQL Field Name definition in the UI stays the same content, which is confusing. And also I would rather have all content groups to remain the content name to prevent altering the headless front-end that relies on this GraphQL endpoint.
Steps to reproduce
query cards($where: RootQueryToCardConnectionWhereArgs, $first: Int, $after: String, $before: String) {
cards(first: $first, where: $where, after: $after, before: $before) {
edges {
cursor
node {
id: cardId
title
slides {
items {
... on SlidesItemsType3Layout {
fieldGroupName
content {
title
}
content {
items {
fieldGroupName
textLeft
textRight
}
}
}
... on SlidesItemsType8Layout {
fieldGroupName
content {
items {
textLeft
textRight
}
}
}
}
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
PHP or JSON export of the ACF Field Group(s)
Additional context
No response
WPGraphQL Version
1.29.3
WPGraphQL For ACF Version
2.4.1
ACF (Advanced Custom Fields) Version. Free or Pro?
Advanced Custom Fields PRO 6.3.11
WordPress Version
6.7.1
PHP Version
8.3
Additional enviornment details
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.
- Yes
- My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
