Closed johnmaguire closed 2 years ago
It looks to me from this code here that it will be the first context
object passed to Load()
during a given batch window: https://github.com/graph-gophers/dataloader/blob/c87fdcead297022977fce66fbd3a6dde2261c32d/dataloader.go#L237-L245
This API is a little confusing - perhaps a note in the README would be helpful to clarify.
Thanks @JohnMaguire, that's right. A note on the README (and perhaps a comment on the code) could make this a bit clearer.
Load()
may be called multiple times beforebatchFn
is called. IfLoad()
is called with various contexts, which one is ultimately passed tobatchFn
?