Title: composing dataloaders · Issue #54 · graphql-java/java-dataloader · GitHub
Open Graph Title: composing dataloaders · Issue #54 · graphql-java/java-dataloader
X Title: composing dataloaders · Issue #54 · graphql-java/java-dataloader
Description: Hi, I have a datafetcher where I use 2 dataloaders in sequence: the first to translate from 1 ID to another, the second to fetch data corresponding to the second ID. loader1.load(id1).thenCompose(id2 -> loader2.load(id2)) This hangs beca...
Open Graph Description: Hi, I have a datafetcher where I use 2 dataloaders in sequence: the first to translate from 1 ID to another, the second to fetch data corresponding to the second ID. loader1.load(id1).thenCompose(i...
X Description: Hi, I have a datafetcher where I use 2 dataloaders in sequence: the first to translate from 1 ID to another, the second to fetch data corresponding to the second ID. loader1.load(id1).thenCompose(i...
Opengraph URL: https://github.com/graphql-java/java-dataloader/issues/54
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"composing dataloaders","articleBody":"Hi,\r\n\r\nI have a datafetcher where I use 2 dataloaders in sequence: the first to translate from 1 ID to another, the second to fetch data corresponding to the second ID.\r\n\r\n`loader1.load(id1).thenCompose(id2 -\u003e loader2.load(id2))`\r\n\r\nThis hangs because dispatchAll() is not called again after loader1 completes.\r\nI can work around that by adding that call inside the thenCompose() lambda but then it is called for every id2 which is ugly at the very least.\r\n\r\nIs there a better way of doing this?","author":{"url":"https://github.com/sheepdreamofandroids","@type":"Person","name":"sheepdreamofandroids"},"datePublished":"2019-10-10T10:08:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/54/java-dataloader/issues/54"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c972552a-6fcb-0a96-0c05-743427aebc2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1A8:F43D:247197:2EFECC:69701AFA |
| html-safe-nonce | ca72346dba5aacfac1b430945c53b3cc5ded17c5eca3ae6cbfede08494051644 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUE4OkY0M0Q6MjQ3MTk3OjJFRkVDQzo2OTcwMUFGQSIsInZpc2l0b3JfaWQiOiIzNTUxNzk4NjA5NjQyMDAzMTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17f7d02a94dd76180a8298a91101a5f824b3c462a357cd71f35cd6a2847852f0 |
| hovercard-subject-tag | issue:505169621 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/graphql-java/java-dataloader/54/issue_layout |
| twitter:image | https://opengraph.githubassets.com/088faa3b057965e2a225188b8936d32d1b341b92cab4ef3c819d25fd17662165/graphql-java/java-dataloader/issues/54 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/088faa3b057965e2a225188b8936d32d1b341b92cab4ef3c819d25fd17662165/graphql-java/java-dataloader/issues/54 |
| og:image:alt | Hi, I have a datafetcher where I use 2 dataloaders in sequence: the first to translate from 1 ID to another, the second to fetch data corresponding to the second ID. loader1.load(id1).thenCompose(i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sheepdreamofandroids |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| 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 | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width