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.
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 ingraphql-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.