Allow for propagating errors to a graphql error
Nickforall opened this issue · comments
Nick Vernij commented
There are some cases where an error shouldn't be in a payload, but should be just a normal GraphQL error. In my use-case I want to do this for authentication errors.
I don't know what the best solution is here, might just be allowing for a middleware in build_payload.