Dynamic @DgsEntityFetcher and @DgsDataLoader #2250
Unanswered
voronovmaksim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. How can I register @DgsEntityFetcher and @DgsDataLoader dynamically?
I found a discussion #432 for DgsDataLoader, but
DataFetchingEnvironment#getDataLoaderRegistry().registerdoesn’t work correctly:#432 (comment)
DgsDataLoaderProvider is final, and the bean cannot be redefined.
I’ve checked the source code for DgsEntityFetcher, and it looks like there is no way to register it dynamically. Only static annotations are supported.
Beta Was this translation helpful? Give feedback.
All reactions