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
@no-dap generally GraphQL HTTP servers don't return anything other than 200 HTTP status codes and any errors are passed back to the client through the "errors" field in the response object. This is mainly because GraphQL supports multiple operations in a single request so it's entirely possible that a request only partially fails and returns both data and errors.
Going to close this issue because I don't think this behaviour should change.
DjangoFormMutation and SerializerMutation return status code 200 even if inputs are invalid.
I found a test code that asserts 200 is correct but isn't it should be 400 rather than 200?
graphene_django.tests.test_views.test_handles_field_errors_caught_by_graphql
The text was updated successfully, but these errors were encountered: