ACF values of 0 resolve to null for Number & Text fields
-
Steps to reproduce:
- Register a Number or Text ACF field on a post type
- Save with
0as that field’s value - Query field via GraphQL and confirm that the value in the response is
null.
Expected behavior
If the value of field in the database is
0, then the value returning by the GraphQL API should also be0.WordPress 6.5.4
WPGraphQL 1.27.0
WPGraphQL for ACF 2.2.0
ACF 6.3.1.2
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘ACF values of 0 resolve to null for Number & Text fields’ is closed to new replies.