wp-graphql / wp-graphql/wpgraphql-acf

Clone fields not registering in schema

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs: reproduction
Dominant language
PHP
Stars
110
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Description

The following clone fields are registered in the schema:

  • Top Level Seamless ❌
  • Top Level Group ❌
  • Nested Seamless ✅
  • Nested Group ❌

All of the above clone fields should get registered in the schema, not just Nested Seamless.

Steps to reproduce
  1. Import the field group: group_66ac73a03007c.json
  2. Create a page and fill with dummy data:
    image
  3. Execute query:
query Test {
  pages {
    nodes {
      title
      pageFields {
        title
        topLevelCloneGroup {
          title
        }
        group {
          title
          nestedCloneGroup {
            title
          }
        }
      }
    }
  }
}
  1. Fields don't exist:

image

PHP or JSON export of the ACF Field Group(s)

group_66ac73a03007c.json

Additional context

No response

WPGraphQL Version

1.27.2

WPGraphQL For ACF Version

2.4.1

ACF (Advanced Custom Fields) Version. Free or Pro?

6.3.5 Pro

WordPress Version

6.6.1

PHP Version

8.1.23

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by importing group_66ac73a03007c.json and reproducing the issue with the GraphQL query in the report. Trace schema registration for top-level and nested clone fields, then verify that all four clone fields appear in the schema and are returned by the query.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, php, wordpress
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.