Programmatically registering DataLoaders #1730
Closed
ellebrecht
started this conversation in
General
Replies: 1 comment 2 replies
-
What release version of the framework are you using? Could you also try with an older version prior to 8.0.0 release? We have some basic support for dynamic registration but don't use this scenario extensively within our organization. We can look into supporting dynamic data loader registration for a future release, likely next quarter. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried registering auto-generated
MappedBatchLoader
s dynamically at runtime according to the instructions in #432, in order to get rid of the static boilerplate code annotated with@DgsDataLoader
.The DataLoaders are sucessfully registered in
com.netflix.graphql.dgs.DgsDataFetchingEnvironment.getDataLoaderRegistry()
. They are never run however, and queries using them always time out.I can only suspect it has something to do with scheduling. Anything I'm missing here?
Also, would you consider offering a way to cleanly register DataLoaders dynamically at runtime through the DGS API?
Beta Was this translation helpful? Give feedback.
All reactions