Exception is swallowed in mutation
glusa8 opened this issue · comments
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
-
What is the current behavior?
When I throw an exception in a mutation, the exception does not show up (double checked on GraphiQL). If there is a way to have the exception show up, I couldn't find it in the documentation. Is swallowing the exception an expected behavior? -
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
a github repo, https://repl.it or similar.
See the screenshots below. The example I created is easy to reproduce.
- What is the expected behavior?
The exception should show up as an error.
-
What is the motivation / use case for changing the behavior?
-
Please tell us about your environment:
- Version: Graphene 3.1.1
- Framework: Django (graphene_django 3.0.0)
- Platform: Mac OS
- Python: 3.10.5
-
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)
This is an issue with graphene-django
which is not directly related to graphene.
You can find some solutions in this thread: graphql-python/graphene-django#124
If that doesn't solve the issue, feel free to open another one over there