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
According to the spec, there is a distinction between "request errors" and "field errors" (and it would most likely make sense to have that distinction in our code base as well).
Field errors are raised during execution from a particular field. This may occur due to an internal error during value resolution or failure to coerce the resulting value.
Field errors must result in a partial response, i.e. a response withdata entry and all (unique) raised field errors in the errors entry. If a field error occurs on a nullable field, the value of that field will be coerced to null. Otherwise, the error propagates to the parent field where it will be handled similarly (if the parent is nullable, it will be coerced to null, otherwise the error propagates further).
According to the spec, there is a distinction between "request errors" and "field errors" (and it would most likely make sense to have that distinction in our code base as well).
Field errors must result in a partial response, i.e. a response with
data
entry and all (unique) raised field errors in theerrors
entry. If a field error occurs on a nullable field, the value of that field will be coerced tonull
. Otherwise, the error propagates to the parent field where it will be handled similarly (if the parent is nullable, it will be coerced tonull
, otherwise the error propagates further).Consider the following schema:
Happy case:
Result:
Error case:
Result:
Expected would IMHO be a partial response along the lines of:
IMHO incorrect error handling should be considered a bug but there is definitely potential for related enhancement as well.
See
The text was updated successfully, but these errors were encountered: