wp-graphql / wpgraphql-acf

Re-architecture of WPGraphQL for ACF
GNU General Public License v3.0
91 stars 13 forks source link

ACF values of 0 resolve to null for Number & Text fields #215

Open josephfusco opened 5 months ago

josephfusco commented 5 months ago

Description

ACF values of 0 resolve to null for Number & Text fields. Original report on WordPress.org

Steps to reproduce

  1. Register a Number or Text ACF field on a post type
  2. Save with 0 as that field’s value
  3. Query field via GraphQL and confirm that the value in the response is null.

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

No response

Additional context

No response

WPGraphQL Version

1.27.0

WPGraphQL For ACF Version

2.2.0

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

6.3.1.2

WordPress Version

6.5.4

PHP Version

8.2

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.