https://github.com/sidoshi/dataloader-example
An example repo to demonstrate the use of dataloader batching
https://github.com/sidoshi/dataloader-example
Last synced: about 2 months ago
JSON representation
An example repo to demonstrate the use of dataloader batching
- Host: GitHub
- URL: https://github.com/sidoshi/dataloader-example
- Owner: sidoshi
- License: mit
- Created: 2020-07-29T12:47:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:36:54.000Z (over 2 years ago)
- Last Synced: 2025-04-01T14:21:14.054Z (about 2 months ago)
- Language: TypeScript
- Size: 1.54 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TSDX Bootstrap
This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx).
---
Run `yarn build` to build the project and then `node dist/index.js` to run the server. The server starts on port 5050. Use your favourite REST client to make a request to `localhost:5050`. The handler will then use a mock list of rates that contain `standardCodeId` and fetch each one on their own iteration. But using `dataloader` all those fetches will be batched and only a single request will be made.