Skip to content
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

Context_value cannot be injected per query. #42

Open
mjpolak opened this issue Nov 10, 2023 · 0 comments
Open

Context_value cannot be injected per query. #42

mjpolak opened this issue Nov 10, 2023 · 0 comments

Comments

@mjpolak
Copy link

mjpolak commented Nov 10, 2023

GraphQLApp Class has context_value parameter of type ContextValue which is defined as:

ContextValue = Union[Any, Callable[[HTTPConnection], Any]]

It leads to conclusion that I can set some function responsible for generating values per each connection, but actually it doesn't work, function is not evaluated and directly passed as value to resolver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant