sidoshi / dataloader-example

An example repo to demonstrate the use of dataloader batching

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSDX Bootstrap

This project was bootstrapped with 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.

About

An example repo to demonstrate the use of dataloader batching

License:MIT License


Languages

Language:TypeScript 100.0%