graph-gophers / dataloader

Implementation of Facebook's DataLoader in Golang
MIT License
1.21k stars 75 forks source link

Prime key should be interface{} #35

Closed wenerme closed 6 years ago

wenerme commented 6 years ago

https://github.com/nicksrandall/dataloader/blob/v4/dataloader.go#L27

No reason the key should be string, every underlying key is interface{}

nicksrandall commented 6 years ago

Fixed in 4.1. Thanks for reporting!