GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
526 stars 66 forks source link

GraphQLError extension to add error code #72

Open itayAmza opened 2 years ago

itayAmza commented 2 years ago

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.