You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to access the operation scoped classes within the ApolloServer context 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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