Fixes an issue where WPGraphQL would raise an "internal server error" with the text "Cannot return null for non-nullable field" when an optional relationship on a post entry has no connections to another post object.
This was introduced in changes in WPGraphQL 1.13.x.
Closes #643
Description
Fixes an issue where WPGraphQL would raise an "internal server error" with the text "Cannot return null for non-nullable field" when an optional relationship on a post entry has no connections to another post object.
This was introduced in changes in WPGraphQL 1.13.x.
See #643 for reproduction steps.
https://wpengine.atlassian.net/browse/MTKA-1977
Checklist
I have:
Testing
Screenshots
Documentation Changes
Dependent PRs