DataLoader is a generic library which aims to solve the
n+1 issue in large-scale GraphQL Applications.
You can read more about DataLoader.
DataLoader can be used in GraphQL Modules with an easy setup.
You can use them as providers or in providers.
If you want to use them as providers, you can extend the
DataLoader class to benefit dependency injection or wrap factory functions with
ProviderScope.Session is recommended for this usage because
DataLoader works on a cache-per-request mechanism.
With Dependency Injection
With Authentication Token
You can see how to generate DataLoader in GraphQLModules using factory functions and dependency injection.