Skip to content

accessing context values in field resolver #4553

Answered by chattling
chattling asked this question in Q&A
Discussion options

You must be logged in to vote

I found answer myself. When I console.log'ed the "context" object my custom authUser object was not printed, so I assumed it is not there. But when I analyzed context object via debugger, it was actually present there. So this is already working as I expected and I can access it via "context.authUser" inside custom field resolver function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chattling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant