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.
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 usingVapor
so adding error headers toAbortError
might also be an option, although I think extension would be much cleaner.