Null values Should be Propagated to Upper Levels when NON_NULL Field Returns Null #2042
Labels
module/graphql
Issues related to Ballerina GraphQL module
Points/2
Priority/High
Team/PCM
Protocol connector packages related issues
Type/Bug
Milestone
Description:
According to the [spec](https://spec.graphql.org/June2018/#sec-Errors-and-Non-Nullability, when a field returned
null
, the GraphQL engine should check the field type whether it is aNON_NULL
type or not. If the field type isNON_NULL
, the field value cannot be null. In this case, thenull
value should be propagated to the immediate parent field. If that field type is alsoNON_NULL
, thenull
value should be further propagated to the next parent object. This should be done until anullable
field is found.Related #1988
The text was updated successfully, but these errors were encountered: