Skip to content

Update GraphQL to version 26.1 - #9

Open
matthewwilson-nosto wants to merge 1 commit into
masterfrom
chore/update-graphql-to-version-26.1
Open

matthewwilson-nosto wants to merge 1 commit into
masterfrom
chore/update-graphql-to-version-26.1

Conversation

@matthewwilson-nosto

Copy link
Copy Markdown

Summary

Bumps com.graphql-java:graphql-java from 21.5 to 26.1 and fixes the resulting incompatibilities so the fork actually works against the new version. This is needed to unblock playcart's own graphql-java upgrade (ADS-5303), which depends on this fork.

Type

  • Bug fix
  • Feature
  • Docs
  • Build/CI

Checklist

  • Includes tests (or reason why not applicable)
  • Updates documentation if needed
  • Linked to issue: Fixes #____

Notes for reviewers

  • EnhancedExecutionStrategy changed the most - the old resolveField override is now gone and I've moved the logic into completeValue.

Bumps com.graphql-java:graphql-java from 21.5 to 26.1 and fixes the
resulting binary/behavioral incompatibilities:

- AnnotationsSchemaCreator: additionalType/additionalTypes now require
  GraphQLNamedType instead of GraphQLType.
- CodeRegistryUtil: GraphQLCodeRegistry.Builder.getDataFetcher needs a
  FieldCoordinates, not a raw GraphQLFieldsContainer.
- EnhancedExecutionStrategy: resolveField no longer exists as an
  override point; the clientMutationId interception moves into
  completeValue, and ExecutionContext.getVariables() is replaced by
  getCoercedVariables().
- DirectivesBuilder: directive argument values must be coerced via
  serialize() rather than parseValue(), which became stricter about
  rejecting String literals for non-String scalars.

Also fixes tests that broke for the same reasons (stricter
GraphQLDirective location validation, and graphql-java's internal
list type no longer being a concrete ArrayList).

Verified with the full existing test suite (243/243 passing, matching
the pre-upgrade baseline).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant