We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! Thank you for turning this into a gem. I was wondering if there's a way to access custom context.
For example when I do
class MySchema < GraphQL::Schema context_class MyContext # <==== ... use GraphQL::Batch enable_preloading end
and later do
preload_scope: -> (args, context) { puts context.class.name ... }
I am getting "GraphQL::Query::Context::FieldResolutionContext" instead of "MyContext"
"GraphQL::Query::Context::FieldResolutionContext"
"MyContext"
FYI my ruby-graphql version is 1.9.3.
1.9.3
Thank you again!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
Thank you for turning this into a gem.
I was wondering if there's a way to access custom context.
For example when I do
and later do
I am getting
"GraphQL::Query::Context::FieldResolutionContext"
instead of
"MyContext"
FYI my ruby-graphql version is
1.9.3
.Thank you again!
The text was updated successfully, but these errors were encountered: