Nickforall / Freight

🚚💨 Dynamically create Absinthe GraphQL payload objects for mutations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for propagating errors to a graphql error

Nickforall opened this issue · comments

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.