dataloaden
dataloaden copied to clipboard
go generate based DataLoader
https://circleci.com/gh/Vektah/dataloaden.svg?style=svg returns 404.
For example, if you request with GitHub GraphQL API with the following query, the result will be returned considering first and after. ```graphql { viewer { repositories(first: 30) { nodes...
go run github.com/vektah/dataloaden UserLoader int ./getting_started/gqlgen-todos/graph/model.User unable to gofmt: /Users/Luca.Paterlini/Documents/Save24thJuly2020/STUDYFUN/go_study/utils/gqlgen/dataloader/userloader_gen.go:6:1: expected 'IDENT', found 'import' exit status 2
Im trying to generate dataloader that uses struct type as a key instead of primitive type. Im using `gqlgen` and all my models are generated automatically. My project structure: ```...
I have these entities: - Golang struct: ```go type Player struct { ID int CreatedAt time.Time City City CityID int Team *Team TeamID *int Score int } ``` - GraphQL...
Lock is released between `Clear` and `Prime` If other goroutine do `Load` or `Prime` during this period, the value will be not used.
Refactor default filename to snake_case, because `useraddresssliceloader_gen.go` is really unreadable. Lemme know your thoughts on this one. BTW, thanks you!
We should be able to change the name of the generated file. https://github.com/vektah/dataloaden/blob/master/pkg/generator/generator.go#L87
Fixes (in a sense) #35 The error message is a bit confusing when no package name found for the working directory (for example, an empty directory). ``` console $ go...
This is almost the same issue reported in #30. dataloaden retrieves a package name in the current working directory when generating a file. But, if no packages are found in...