Solve N+1 Using DataLoader — GraphQL Modules documentation.
DataLoader is a generic library that 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 Inject.
Scope.Operation is recommended for this usage because DataLoader works on a cache-per-request mechanism.