Avoid dataloaders with this idea? #1928
frederikhors
started this conversation in
Ideas
Replies: 1 comment
-
This seems to add a lot of unnecessary complexity to resolving leaf nodes. You can always have a dataloader behind a struct method if you want it to be deferred. If dataloaders aren't your thing, you can also avoid n+1 with non-eager preloading by looking at the selections / field collection: https://gqlgen.com/reference/field-collection/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys.
What do you think about implementing this idea in gqlgen?
It can be amazing and we can usefully avoid dataloaders.
Beta Was this translation helpful? Give feedback.
All reactions