Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context in the load function #36

Open
guiajlopes opened this issue Jul 29, 2019 · 1 comment
Open

Add context in the load function #36

guiajlopes opened this issue Jul 29, 2019 · 1 comment

Comments

@guiajlopes
Copy link

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?

@edsrzf
Copy link
Contributor

edsrzf commented Aug 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants