Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 400 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 400 Bytes

dataloader

Requires golang 1.18+ for generics support.

inspired by https://github.com/vektah/dataloaden.

The intended use is in graphql servers, to reduce the number of queries being sent to the database. These dataloader objects should be request scoped and short lived. They should be cheap to create in every request even if they dont get used.

example

go run ./examples/main.go