Accessing operation scoped classes in ApolloServer context #2235
Unanswered
timvansteenis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to access the
operationscoped classes within the ApolloServercontextfunction?We are currently using the
contextfunction to do general authentication and fetch some basic user data required for most of our operations (which is mostly on a user in our user collection). We would like use our operation scoped UserDataLoader for this. In case of a possible fetch with the same user id, the dataloader would be reused.Any alternatives would also be welcome.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions