Skip to content

User field is returning all users #162

@jasonbahl

Description

@jasonbahl

Description

When querying the Users field, all users are being returned instead of just the users selected on the field.

Steps to reproduce

  1. create an ACF Field group with a field of the "user" type
  2. assign the field group to pages
  3. Edit a page, selecting one or more users on the user field
  4. Update/Publish the page
  5. Query for the page and the user field
  6. see that all users are returned, not just the selected user(s)

Selected:
CleanShot 2024-02-01 at 08 53 48

Query:
CleanShot 2024-02-01 at 08 54 25

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

acf-export-2024-02-01.json.zip

Additional context

No response

WPGraphQL Version

1.20.0

WPGraphQL For ACF Version

2.1.0

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

Latest, PRO

WordPress Version

latest

PHP Version

8.1

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.

Metadata

Metadata

Assignees

Labels

status: actionableReady for work to begintype: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions