graphql-compose / graphql-compose-dataloader

Add DataLoader to graphql-composer resolvers.
MIT License
18 stars 6 forks source link

dataloader not working with latest graphql-compose #8

Open rojectsky opened 3 years ago

nodkz commented 3 years ago

DataLoader cannot be expressed like a simple plugin. Mostly this plugin was used with graphql-compose-mongoose models. From graphql-compose-mongoose@9.0.0 (read more) it starts provide new built-in resolvers dataLoader & dataLoaderMany resolvers which implement DataLoader logic in different manner.

For now ttl cache logic does not implemented in graphql-compose-mongoose's dataLoader & dataLoaderMany. If you need it somehow, please open a new issue in https://github.com/graphql-compose/graphql-compose-mongoose with the explanation of your desired use cases. Tnx.