DataLoader support for Webflux #774
Unanswered
mlsoftwarehouse
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
You can create a Mono/Flux from a |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am tying to implement my GraphQL endpoint using Webflux.
I am struggling to use DataLoader as described under: https://netflix.github.io/dgs/data-loaders/
My DataFetcher is declared as follows:
@DgsData(parentType = DgsConstants.NAVIGATIONITEM.TYPE_NAME, field = DgsConstants.NAVIGATIONITEM.Children) public Flux<NavigationItem> children(DataFetchingEnvironment environment) {However the DataLoaders#load method return type is
public CompletionStage<List<NavigationItem>> load(List<Long> keys, BatchLoaderEnvironment batchLoaderEnvironment) {How i can make both to work together?
Could you please point me to the right direction?
Beta Was this translation helpful? Give feedback.
All reactions