Open frederikhors opened 2 years ago
@frederikhors it's a cool idea, but i'm a little concerned about making this sample app too complex. thoughts?
I was thinking about perhaps simplifying it.
I think we need it. The life is complex. 😄
My point is that probably belongs in the docs for the dataloader project, not here. That's a simple client method that you can invoke, not something that relates to wiring the library to gqlgen.
My fear is we will make this sample repo too big.
Ok, can you at least enlighten me and add somewhere in the README on the code for the loadmany? We should also use it for the gqlgen docs.
@frederikhors i think you just invoke LoadMany
on this dataloader.Loader
instance
https://github.com/zenyui/gqlgen-dataloader/blob/main/graph/dataloader/dataloader.go#L28
@zenyui I think we should add a
LoadMany
example in your amazing demo project: https://github.com/zenyui/gqlgen-dataloader.Example:
Player
s for aTeam
IDPlayer
s for manyTeam
IDs