Skip to content

Request: Global Error Handler #773

@thanpolas

Description

@thanpolas

Hello,

We want to enforce a global error handler across all our graphql mutations and queries so as to apply specific business logic before the error reaches the client.

So far I have only come up with the kadirahq/graphql-errors package, which basically walks all the fields of all the type definitions and wraps the resolve method of each one.

Is that what we only have today? Am I missing something? Would you consider adding such a feature, a global error handler?

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