useGenericAuth: Any way to access executionArgs.rootValue? #1752
Unanswered
robertherber
asked this question in
Q&A
Replies: 1 comment 2 replies
-
And the same issue seems to go for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using useGenericAuth I'd like to be able to access the rootValue being passed to the resolver, but it is always undefined. I'm guessing it's because it's executed before the resolver.
The use case is as follows (I'd like to have access to the groups
rootValue._id
when determining access toaProtectedResolver
):Not sure about the lifecycle here - I would assume this would make most sense - but I guess it's not how it works today:
Is accessing rootValue possible in useGenericAuth somehow? Am I misunderstanding the flow of things?
Beta Was this translation helpful? Give feedback.
All reactions