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?
0
?as 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 be?0
.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)
- You must be logged in to reply to this topic.