You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
and if the request does not pass the validation in GQL mutation controller, we throw user-exception:
public class GraphQLException extends RuntimeException implements GraphQLError {
....
}
what we noticed is, if we make Partner type not-nullable in schema and we throw this user exception, response looks different than if this field is nullable:
For nullable:
"data": { "deletePartner": null }
For non-nullable:
"data": null
This started to break our front-end at some point, as code always expected consistent response. We are not sure what exactly is expected here, but I'd say when there is error of any kind thrown from underlying code, data object should be set to null?
Expected behavior
I would expect in case of errors, I always get consistent response "data": null
Desktop (please complete the following information):