Open WillSquire opened 4 years ago
In your examples, I believe this:
return new DataLoader<string, Account>(keys => this.accountService.findByIds(keys) )
Can be this:
return new DataLoader<string, Account>(this.accountService.findByIds)
If it's helpful.
Well I guess it's just an exemple.
Also I think the findByIds method doesn't guarantee the order, so we should make extra work to make sure that the we return the instances in the same order of the keys.
findByIds
In your examples, I believe this:
Can be this:
If it's helpful.