Title: Design question: translating field selections into an external execution model (adapter built on graphql-java) · Issue #4538 · graphql-java/graphql-java · GitHub
Open Graph Title: Design question: translating field selections into an external execution model (adapter built on graphql-java) · Issue #4538 · graphql-java/graphql-java
X Title: Design question: translating field selections into an external execution model (adapter built on graphql-java) · Issue #4538 · graphql-java/graphql-java
Description: Hi all, I maintain Foundgine, an open-source semantic execution layer (https://github.com/CristianBarragan/Foundgine). Applications define entities, fields, relationships and capabilities once, and every request is resolved against that ...
Open Graph Description: Hi all, I maintain Foundgine, an open-source semantic execution layer (https://github.com/CristianBarragan/Foundgine). Applications define entities, fields, relationships and capabilities once, and...
X Description: Hi all, I maintain Foundgine, an open-source semantic execution layer (https://github.com/CristianBarragan/Foundgine). Applications define entities, fields, relationships and capabilities once, and...
Opengraph URL: https://github.com/graphql-java/graphql-java/issues/4538
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design question: translating field selections into an external execution model (adapter built on graphql-java)","articleBody":"Hi all,\n\nI maintain Foundgine, an open-source semantic execution layer (https://github.com/CristianBarragan/Foundgine). Applications define entities, fields, relationships and capabilities once, and every request is resolved against that semantic model, authorized using the identity supplied by the host application, bound into a provider-independent execution plan, and executed. The Java version core is on Maven Central (io.github.cristianbarragan:foundgine-core).\n\nThe intended flow is:\n\nGraphQL -> AST -> Semantic Request -> Foundgine runtime\n\nA query like this would be converted into one semantic request, with GraphQL syntax never leaking past the adapter:\n\n```graphql\nquery {\n product(sku: \"SKU-1\") {\n name\n catalog { category }\n inventory(available: true) { quantity }\n pricing { amount currency }\n }\n}\n```\n\nThree questions:\n\n1. **Reading the request.** Is DataFetchingEnvironment.getSelectionSet() (DataFetchingFieldSelectionSet and SelectedField) the recommended, stable way to read nested fields, arguments and aliases from a root field fetcher, with fragments already resolved? And for directives and variables, is it better to use the environment, or to parse the document with the Parser and walk the AST myself?\n\n2. **Schema.** Foundgine's semantic model is the source of truth. Would you generate SDL from the model at startup and attach a single generic DataFetcher to the root fields, or build the GraphQLSchema programmatically through the schema generator APIs? Are there pitfalls with schemas that are fully derived from external metadata?\n\n3. **Identity.** What is the recommended way to carry caller identity from the host application (for example a Spring Security principal) into the fetcher, so authorization can run before execution: GraphQLContext, a custom ExecutionInput context, or something else?\n\nI'd also welcome pointers to existing libraries that do something similar, so I can follow their conventions rather than invent new ones.\n\nThanks for your time.","author":{"url":"https://github.com/CristianBarragan","@type":"Person","name":"CristianBarragan"},"datePublished":"2026-11-05T01:22:20Z","url":"https://github.com/graphql-java/graphql-java/issues/4538"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:262c269a-fe51-c4ce-bbb0-17cf1f5b0487 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9E6:FC5BE:1F5B075:2993D2E:6B01764F |
| html-safe-nonce | d20d37fae2335c978db95b1de7cbb0343e70722cf6b4bc11468a7489fcaa08b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUU2OkZDNUJFOjFGNUIwNzU6Mjk5M0QyRTo2QjAxNzY0RiIsInZpc2l0b3JfaWQiOiI1NjE2NDA2MDQwNDQzNzEzMTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 871a238c0cddb4ffb980d42ea2bea2aa25d5ad3101d87eff8d1f8dd134db7c12 |
| hovercard-subject-tag | issue:6214737618 |
| 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/4538/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd3b3d6b66447b8d4e36ae2cb7d816faa4b0604db552904817101c4a49f1f5b9/graphql-java/graphql-java/issues/4538 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd3b3d6b66447b8d4e36ae2cb7d816faa4b0604db552904817101c4a49f1f5b9/graphql-java/graphql-java/issues/4538 |
| og:image:alt | Hi all, I maintain Foundgine, an open-source semantic execution layer (https://github.com/CristianBarragan/Foundgine). Applications define entities, fields, relationships and capabilities once, and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CristianBarragan |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width