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
If I run this mutation through a client, in such a way that I get back an error (eg in this case I pass an empty email, which returns an error to the client):
The issue is that the signUp field is not nullable, however the server responds with null. In the beginning I believed it was a client issue, however after opening an issue in the apollo-ios github repo it seems that there must be something off with the way the library handles nullability.
The issue is, that because the server nulls a non-nullable result, the client cannot handle correctly the error. Instead of getting back the correct error, it detects a null response (which should not be null) and reports the null value as the error.
The text was updated successfully, but these errors were encountered:
I am a bit baffled by the way the framework deals with non-nullable types.
For example I have a mutation like that:
with the respective GraphQL schema:
signUp(email: String!, password: String!): Result!
If I run this mutation through a client, in such a way that I get back an error (eg in this case I pass an empty email, which returns an error to the client):
The issue is that the signUp field is not nullable, however the server responds with null. In the beginning I believed it was a client issue, however after opening an issue in the apollo-ios github repo it seems that there must be something off with the way the library handles nullability.
The issue is, that because the server nulls a non-nullable result, the client cannot handle correctly the error. Instead of getting back the correct error, it detects a null response (which should not be null) and reports the null value as the error.
The text was updated successfully, but these errors were encountered: