vektah / dataloaden

go generate based DataLoader
MIT License
530 stars 79 forks source link

Any recipes to use dataloaden with Gin? #56

Closed mirusky closed 3 years ago

mirusky commented 3 years ago

I'm looking for a pattern or a recipe to use dataloaden with gin is there some approach?

bRRRITSCOLD commented 3 years ago

I caveat the below with I just started exploring golang over the past few weeks (senior backend node dev currently), BUT!!!!!!

I have been working on a solution over the weekend, repo (inspired partially by this example - minus gin and mongodb) - no real README yet on how to start this up or use it, I will work on that over the coming weeks as I have time.

Server Start Up Internal API Dataloaders Package First Example Usage In Resolver - begins line 17

mirusky commented 3 years ago

Hi @bRRRITSCOLD a person helped me to setup a minimal example in (https://github.com/99designs/gqlgen/issues/1439). You could find a very usefull resources there if u need this kind of implementation.

I will close this issue since we have an answer