Skip to content

Feedback for “Error Handling” #3762

Open
@lucas-figueiredo-m

Description

@lucas-figueiredo-m

I'm building an app using NestJS and I wanted to use Yoga as the driver for the GraphQL server. I'm using class-validator to validate inputs from users on mutations and queries. However, when a validation fails, maskedErrors error object don't contain the extensions object and I can't handle it so I return a better friendly message to the user.

Is this a bug or can be accomplished in a different manner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions