# DataLoader

> Batching and caching utility for a Node.js app's data fetching layer

Source: https://talira.ai/catalog/dataloader-g7g6v71s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / data fetching](https://talira.ai/categories/libraries/data-fetching)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [GraphQL Foundation](https://talira.ai/orgs/graphql-foundation.md)

DataLoader is an MIT JavaScript utility from the GraphQL project that sits in a Node.js service's data fetching layer: loads requested in the same tick are batched into one request to the database or web service, and each result is cached per request, so the same key is fetched once. It's a port of the Loader API Facebook developed in 2010, and it's most often used to avoid N+1 queries in a GraphQL server, though it works with any backend. It's also meant as a reference implementation for ports to other languages.

## Links

- GitHub: https://github.com/graphql/dataloader

## Problems it solves

- stop N+1 database queries in my GraphQL resolvers
- batch many lookups by id into one SQL query in Node.js
- cache repeated loads of the same record within one request

## Features

- batches individual loads in one tick into a single backend request
- per-request cache so each key is fetched once
- works with any database or web service behind a batch function

## Trust

Overall: 0.51 out of 1.
Signals: maintenance 0.47, adoption 0.83, momentum 0.60, community 0.74, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 3 commits in the last 90 days
- latest release v2.2.3 24 months ago
- 13.4k GitHub stars
- 68 contributors
- backed by GraphQL Foundation

## Alternatives

- [Haxl](https://talira.ai/catalog/haxl-kfdchm3g.md): A Haskell library that simplifies access to remote data, such as databases or web-based services

## Sources

[^1]: https://github.com/graphql/dataloader/blob/main/README.md (checked 30 Nov 2026)
[^2]: https://github.com/graphql/dataloader/blob/main/LICENSE (checked 30 Nov 2026)
