dataloaden
dataloaden copied to clipboard
go generate based DataLoader
Mostly done for my own edification. Intentionally kept the API as similar as possible to demonstrate the existing test cases still pass (with one exception, noted). Should keep the migration...
It is an attempt to solve the issue https://github.com/vektah/dataloaden/issues/52. These changes allow developers to disable caching, if necessary, or change the caching strategy to their own realization. For example, everybody...
I see no recent commits. Is it reliable to use this project in production?
What is the best approach if I need to pass arguments to my dataloader? I've seen 2 issues on here where people suggest using anonymous structs but that feels pretty...
``` go run github.com/vektah/dataloaden ObjectLoader string map[string]interface{} unable to gofmt: [hidden]/dataloader/someloader_gen.go:125:2: expected expression (and 8 more errors) exit status 2 ``` Is this supported? Or is only a slice supported?
So every single data loader usage will have a mapping thing going on inside, it's basically: - query the db - db returns in an order - initialize a map...
Now a panic inside fetch doesn't take down the whole process. This also adds a new optional `Recover` field to Config structs to allow control over transforming recovered values into...
Fixes #54 Basically exclude _sync_ and _time_ packages from being second time imported while generating the *gen.go file. Example given: `//go:generate dataloaden fooLoader int *time.Time`
## What I am trying to do: Generate a dataloader with target type _time.Time_. Example given: `//go:generate dataloaden fooLoader int *time.Time` ## What happen: Generating fails with: ``` shell ➜...