dataloaden icon indicating copy to clipboard operation
dataloaden copied to clipboard

Add context in the load function

Open guiajlopes opened this issue 5 years ago • 1 comments

Hi, I have some cases that I need the context... For example I'm using the library to make external requests to other APIs and each logged in user have their access key (which is in the context) and there's no way I can get it inside the fetch function.

My users are being set using GraphQL directives because some resolvers don't require users to be logged in

Can we add that?

guiajlopes avatar Jul 29 '19 14:07 guiajlopes

Did you happen to see this part of the README? https://github.com/vektah/dataloaden#wait-how-do-i-use-context-with-this

edsrzf avatar Aug 11 '19 08:08 edsrzf