At STRV, we’ve been building GraphQL backends for years and quickly realized that Dataloader is essential for delivering top performance (read about the N+1 problem). When we began implementing backends in Nest.js and added Dataloader, we saw an opportunity to generalize the integration and make it available for any Nest.js GraphQL project. And that’s how nestjs-dataloader was born.
While we’ve been using this implementation internally and testing it on multiple projects, this is an initial pre-production release. We’ll be gradually rolling it into new projects, addressing bugs and refining the experience. If you spot an issue or have ideas for improvements, please open an issue in the GitHub repo.
We hope this integration helps you as much as it’s helped us.
And lastly, a big thank you to Kris Lefeber, whose previous work on this type of integration inspired our implementation.