Skip to content

Flask - add support for custom execution_context_class argument #76

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

Closed
alvinchow86 opened this issue Dec 11, 2020 · 0 comments · Fixed by #100
Closed

Flask - add support for custom execution_context_class argument #76

alvinchow86 opened this issue Dec 11, 2020 · 0 comments · Fixed by #100
Labels
good first issue First-time contributors that open a new issue type: feature A new feature

Comments

@alvinchow86
Copy link
Contributor

I am using Graphene with the Flask graphql integration. Graphql core supports an argument in its execute() function called execution_context_class, among other things as well. I would like to pass a custom ExecutionContext class but it doesn't look like there is a way to do this here in the Flask server integration (and probably the other ones as well).

My use case is that I'd like to use the new UnforgivingExecutionContext added recently in graphene (see graphql-python/graphene#1255), so that I can have better exception handling and Sentry integration in my application.

It seems like this should be an easy fix, I may look into submitting a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue First-time contributors that open a new issue type: feature A new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants