Skip to content

GraphQLError extension to add error code #72

Description

@itayAmza

Question,
I'm looking for an easier way of parsing and handling errors on client.
I want to add an extension to the GraphQLError, So I can add an error code property.
Do you think it's possible?
I'm using Vapor so adding error headers to AbortError might also be an option, although I think extension would be much cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions