This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a minimal implementation of Dataloader. This implementation leaves out the caching functionality | |
* and skips most of the error handling so it's not suitable to use in production. This is meant to help | |
* you understand how Dataloader works. Once you understand this code check out the full Dataloader code: | |
* https://github.com/graphql/dataloader | |
*/ | |
class Dataloader { | |
constructor(batchFunction) { | |
this.batchFunction = batchFunction; |
OlderNewer