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
-
Hi,
Is it possible to access the
operation
scoped classes within the ApolloServercontext
function?We are currently using the
context
function 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