We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Load() may be called multiple times before batchFn is called. If Load() is called with various contexts, which one is ultimately passed to batchFn?
Load()
batchFn
The text was updated successfully, but these errors were encountered:
It looks to me from this code here that it will be the first context object passed to Load() during a given batch window:
context
dataloader/dataloader.go
Lines 237 to 245 in c87fdce
This API is a little confusing - perhaps a note in the README would be helpful to clarify.
Sorry, something went wrong.
Thanks @johnmaguire, that's right. A note on the README (and perhaps a comment on the code) could make this a bit clearer.
tonyghita
Successfully merging a pull request may close this issue.
Load()
may be called multiple times beforebatchFn
is called. IfLoad()
is called with various contexts, which one is ultimately passed tobatchFn
?The text was updated successfully, but these errors were encountered: