-
Notifications
You must be signed in to change notification settings - Fork 390
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
inject @Req / context / info to @ResolveProperty() #16
Comments
Just found that request is empty object and request2 does get the request object. What is the correct way to get the request object? Thanks. |
I am stupid... Just found from the apollo doc that ResolveProperty and Query share the same resolver function signature.
https://www.apollographql.com/docs/graphql-tools/resolvers.html |
@hkjeffchan at some level we all are :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In @query, we get the parameters (args, context, info) like this
And req can be retrieved from context or info
Is it possible to get the req from @ResolveProperty too? I have tried something like this but it does not work.
The text was updated successfully, but these errors were encountered: