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

use batchLoadFn.apply instead of directly invoking batchLoadFn #182

Merged
merged 2 commits into from Nov 13, 2019

Conversation

jorisroling
Copy link
Contributor

use batchLoadFn.apply(loader,[keys]) instead of batchLoadFn(keys) to allow acces to the actual dataloader. Needed for example to use dataloader.prime() in the batch loader function (where the actual data loader can be accessed by using 'this').

@jorisroling
Copy link
Contributor Author

There seems to be a problem with coveralls, it reports "Couldn't find a repository matching this job."
A quick google show that it is often related to some whitelisting issue.

use batchLoadFn.apply(loader,[keys]) instead of batchLoadFn(keys) to allow acces to the actual dataloader. Needed for example to use dataloader.prime() in the batch loader function.
@leebyron leebyron merged commit bb8a7aa into graphql:master Nov 13, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants