Graphiti icon indicating copy to clipboard operation
Graphiti copied to clipboard

GraphQLError extension to add error code

Open itayAmza opened this issue 3 years ago • 0 comments

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.

itayAmza avatar Dec 25 '21 12:12 itayAmza