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
expected: "{\"data\":null,\"errors\":[{\"message\":\"Unauthorized\",\"locations\":[{\"line\":1,\"column\":8}],\"path\":[\"hello\"]}]}"
got: "{\"data\":null,\"errors\":[{\"message\":\"Cannot return null for non-nullable field Query.hello\"}]}"
I would argue for more complex implementation of the unauthorized_object / unauthorized_field checking the type and if it's a type that should not be null - re-raise the error - OFC after the methods get working on 2.1 again.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
even I've been using the gem for years now I was hit by this wired behavior https://gist.github.com/mpapis/38abc6b0218405a1684d2f623a052ab4 ->
I would argue for more complex implementation of the
unauthorized_object
/unauthorized_field
checking the type and if it's a type that should not be null - re-raise the error - OFC after the methods get working on 2.1 again.Beta Was this translation helpful? Give feedback.
All reactions