Skip to content

Prepare graphql java 26 nullability - #2356

Merged
jiholee17 merged 4 commits into
masterfrom
prepare-graphql-java-26-nullability
Oct 13, 2026
Merged

jiholee17 merged 4 commits into
masterfrom
prepare-graphql-java-26-nullability

Conversation

@jiholee17

@jiholee17 jiholee17 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Prepare the Kotlin code and tests for the nullability changes in the upcoming GraphQL Java 26, Spring Boot 4.2, and Spring GraphQL 2.1 upgrade in #2352. This handles nullable API results and instrumentation callbacks and updates introspection tests for the new collection types.

User impact is none for standard usage, with changed failure and metric behavior for missing or malformed GraphQL data:

  • DgsContext.from (graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/context/DgsContext.kt:46) now throws IllegalArgumentException if the DGS context is missing.
  • Federation type resolution (graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/federation/DefaultDgsFederationResolver.kt:248) now falls back to the class name if a custom mapping returns null.
  • Micrometer instrumentation handles missing field information without failing; when it cannot resolve a field coordinate, it skips the resolver metric. An unnamed inline fragment without a type condition gets the fallback operation name -noTypeCondition.

The test assertion cleanup has no user impact.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants