Title: In a Spring webflux, how to use Ractor Mono/Flux in a data loader · graphql-java/java-dataloader · Discussion #102 · GitHub
Open Graph Title: In a Spring webflux, how to use Ractor Mono/Flux in a data loader · graphql-java/java-dataloader · Discussion #102
X Title: In a Spring webflux, how to use Ractor Mono/Flux in a data loader · graphql-java/java-dataloader · Discussion #102
Description: In a Spring webflux, how to use Ractor Mono/Flux in a data loader
Open Graph Description: I tried to use DataLoaders in a Spring WebFlux application, all the APIs in the service/repositories returned a Mono/Flux, but there is no a DataLoader variant for these case.
X Description: I tried to use DataLoaders in a Spring WebFlux application, all the APIs in the service/repositories returned a Mono/Flux, but there is no a DataLoader variant for these case.
Opengraph URL: https://github.com/graphql-java/java-dataloader/discussions/102
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"In a Spring webflux, how to use Ractor Mono/Flux in a data loader","text":"I tried to use DataLoaders in a Spring WebFlux application, all the APIs in the service/repositories returned a Mono/Flux, but there is no a DataLoader variant for these case.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" BatchLoader<String, Data> batchLoader =new BatchLoader<>() {\n @Override\n public CompletionStage<List<Data>> load(List<String> keys) {\n Mono<List<Data>> monoOfData = loadData(keys);\n CompletableFuture<List<Data>> cfOfData = monoOfData.toFuture();\n return cfOfData;\n }\n };\n
\nMonos can be made into CompletableFutures
","upvoteCount":1,"url":"https://github.com/graphql-java/java-dataloader/discussions/102#discussioncomment-1285133"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:4f367b46-cb03-97c8-3811-1bff5be23f3e |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | BDDA:3D09CA:9FF9EC:E18A40:696F8ED7 |
| html-safe-nonce | d0275c219f40e92485ffa890a16f51ea4a1d54c82f910c0816be358fe4f21e0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRERBOjNEMDlDQTo5RkY5RUM6RTE4QTQwOjY5NkY4RUQ3IiwidmlzaXRvcl9pZCI6IjY2MTgzOTUyNzMxODcwMDQxMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a10a9e72384c176fbf4a38a5336cb2b1a27236fcd73483590a58d60ab7477d4 |
| hovercard-subject-tag | discussion:3557194 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/graphql-java/java-dataloader/102/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/8b6b4e7df84faefea4d460b37b91484339028b081c87a0ac8cdf951a63249224/graphql-java/java-dataloader/discussions/102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b6b4e7df84faefea4d460b37b91484339028b081c87a0ac8cdf951a63249224/graphql-java/java-dataloader/discussions/102 |
| og:image:alt | I tried to use DataLoaders in a Spring WebFlux application, all the APIs in the service/repositories returned a Mono/Flux, but there is no a DataLoader variant for these case. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/java-dataloader git https://github.com/graphql-java/java-dataloader.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 97364654 |
| octolytics-dimension-repository_nwo | graphql-java/java-dataloader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 97364654 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/java-dataloader |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width