Title: Return POJO instead of LinkedHashMap · Issue #1855 · graphql-java/graphql-java · GitHub
Open Graph Title: Return POJO instead of LinkedHashMap · Issue #1855 · graphql-java/graphql-java
X Title: Return POJO instead of LinkedHashMap · Issue #1855 · graphql-java/graphql-java
Description: Dear all, I'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV). When I use graphql.execute(ExecutionInput), it always provides a list of nested Linked...
Open Graph Description: Dear all, I'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV). When I use graphql.execute(ExecutionInput), it...
X Description: Dear all, I'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV). When I use graphql.execute(ExecutionInput)...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/1855
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Return POJO instead of LinkedHashMap","articleBody":"Dear all,\r\nI'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV). \r\nWhen I use `graphql.execute(ExecutionInput)`, it always provides a list of nested `LinkedHashMap`s\r\nHowever, I would prefer having results as POJOs.\r\n\r\nI dig a little bit into the code, and found, that the results are aggregated in `AbstractAsyncExecutionStrategy#handleResults`. So I decided to implement a custom strategy, which would build POJO directly.\r\nHowever, I don't see any way, how to know, which output class it should be. I could take it from the current `ExecutionPath` (which is available in `ExecutionStrategyParameters`), but `handleResults` doesn't have this parameter.\r\n\r\nSo, my questions are:\r\n1. Is there any way to get current ExecutionPath in `handlerResults`?\r\n2. Is there any other way to produce POJO instead of LinkedHashMap?\r\n\r\nPS thanks a lot for the wonderful library!","author":{"url":"https://github.com/bugy","@type":"Person","name":"bugy"},"datePublished":"2020-04-10T13:22:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1855/graphql-java/issues/1855"}
| 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:4841c88b-7da2-06c4-8083-1d45802f2e8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1AE:2A6262:269A56A:31D2307:6974C181 |
| html-safe-nonce | ca214e91b0bfdf348ce6e8377bbaa51aca31ad9460f6eeb14c45edec585dc4b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUFFOjJBNjI2MjoyNjlBNTZBOjMxRDIzMDc6Njk3NEMxODEiLCJ2aXNpdG9yX2lkIjoiNjQ4OTQ0MDAwMTExMTQwOTAyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f0623a72be36181bf4e31299ea76f3d5fb1f906efb0e18964b2dfdb5cc51419 |
| hovercard-subject-tag | issue:597885790 |
| 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/graphql-java/1855/issue_layout |
| twitter:image | https://opengraph.githubassets.com/537a6db99c151e176d9631abac1245805c450a678ce91a7cc2037cf1ad60504b/graphql-java/graphql-java/issues/1855 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/537a6db99c151e176d9631abac1245805c450a678ce91a7cc2037cf1ad60504b/graphql-java/graphql-java/issues/1855 |
| og:image:alt | Dear all, I'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV). When I use graphql.execute(ExecutionInput), it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bugy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width