Introduce one more resolver to reduce DB calls #2127
-
What happened?I'm having some trouble resolving a specific situation which results in performances reduction. Here's an example schema for exposing the problem:
I've followed the documentation, expecially this part https://gqlgen.com/getting-started/#dont-eagerly-fetch-the-user
When the When the The results it's ok in both cases, but the What did you expect?I would like to obtain some
And I expect every element of the returned array to merge with the corresponding element of the Minimal graphql.schema and models to reproduce
versions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved my problem using Dataloaders: https://gqlgen.com/reference/dataloaders/ |
Beta Was this translation helpful? Give feedback.
I solved my problem using Dataloaders: https://gqlgen.com/reference/dataloaders/