Skip to content

Let graphene handle serializer errors #380

Closed
@annshress

Description

@annshress

Currently, we have separate errors field rather than using already existing error feature provided by graphene.

https://github.com/graphql-python/graphene-django/blob/master/graphene_django/rest_framework/mutation.py#L77
https://github.com/graphql-python/graphene-django/blob/master/graphene_django/rest_framework/mutation.py#L128

So instead we could simply raise the ValidationError raised by serializer, and let graphene handle it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions