dataloader
dataloader copied to clipboard
DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batching and ca...
Hello everyone! We @the-guild-org are the [new maintainers](https://github.com/graphql/dataloader/discussions/292) of this project. We investigated current state of this project, triaged all existing issues and PRs so we can address them. Here...
## What problem am I trying to solve? Dataloader currently can solve the problem of collection of data leads to multiple database access. But `batchLoadFn` may query unnecessary data from...
Adds an example to show how to bind request context to DataLoader loading functions.
I am experiencing a weird edge case with data loader. Suppose we have functions like below. ``` const firstQueryBatch = (ids: string[]) => do something batch with Ids... const secondQueryNonBatch...
Is there a reason why DataLoader doesn't deduplicate ids provided to the batch function when the cache is set to false? ```js const dataloader1 = new DataLoader(async function loadMany(ids) {...
In order to support specifying "this" type for a function. Required for https://github.com/graphql/dataloader/pull/288. Updated to the latest version (0.167.0), though, v0.154.0 is sufficient.
Note: depends on https://github.com/graphql/dataloader/pull/287 ## Use case I want to be able to use `this.prime` in `batchLoadFn`. Without these changes I have to specify `this` type of the callback manually.
DataLoader is a great feature. I'm using Cloud Firestore, and I've thrown in a pull request to add sample documentation, which I hope will increase the number of Cloud Firestore...
Update types to allow `batchLoadFn`s to resolve with an array of promises (this is already functionally supported). This is a breaking change because it changes the `BatchLoadFn` type which will...