GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Design question: translating field selections into an external execution model (adapter built on graphql-java) · Issue #4538 · graphql-java/graphql-java

Design question: translating field selections into an external execution model (adapter built on graphql-java) #4538

New issue
Copy link
New issue
Copy link
Open
Open
Design question: translating field selections into an external execution model (adapter built on graphql-java)#4538
Copy link

Description

@CristianBarragan
CristianBarragan
opened on Nov 5, 2026
Issue body actions

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 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).

The intended flow is:

GraphQL -> AST -> Semantic Request -> Foundgine runtime

A query like this would be converted into one semantic request, with GraphQL syntax never leaking past the adapter:

query {
  product(sku: "SKU-1") {
    name
    catalog { category }
    inventory(available: true) { quantity }
    pricing { amount currency }
  }
}

Three questions:

  1. 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?

  2. 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?

  3. 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?

I'd also welcome pointers to existing libraries that do something similar, so I can follow their conventions rather than invent new ones.

Thanks for your time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.