With the new release of gql_jwt all the output fields are required,
therefore implementing custom output by the user is impossible because graphene will raise
None on non field Error i.e:
And the desired result would be:
After making the changes in this graphql_auth PR tests are passing
Optional explanations:
In the mutation above you see a login mutation with a captcha that needed to be validated.
I am not using the full graphql_auth package i just copied and modified some of they're code
I know i can just raise exceptions where ever i want and get the message at the client but i think its a naive approach for 2 reasons:
Because there should be a seperations between user errors and a developer errors, developer errors should not reach the user.
Because if the mutation was successful i have no way to know that in a standard fashion.
With the new release of gql_jwt all the output fields are required, therefore implementing custom output by the user is impossible because graphene will raise None on non field Error i.e:
And the desired result would be:
After making the changes in this graphql_auth PR tests are passing
Optional explanations: