-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return errors as JSON #33
Comments
Can you create a small repo that does that, maybe with a test? |
Here you can find the code: https://typegraphql.ml/docs/authorization.html#recipes |
Same problem for me. I was wondering if it would not be possible to rewrite the execution function ('execute' option when creating sofa router, adding a simple try/catch), but we have no way to call back the initial sofa execution function. |
Released as |
Closing but let us know if there's still an issue |
How can I setup Sofa so that when my queries
throw
s error they are formatted asJSON
instead ofHTML
?The text was updated successfully, but these errors were encountered: