Skip to content

Upgrade to HotChocolate 16 - #3

Merged
cliedeman merged 2 commits into
mainfrom
hc16
Jul 2, 2026
Merged

Upgrade to HotChocolate 16#3
cliedeman merged 2 commits into
mainfrom
hc16

Conversation

@cliedeman

Copy link
Copy Markdown
Contributor

What

Upgrade Stackworx.Hotchocolate.MuiDataGrid from HotChocolate 15 to HotChocolate 16.3.0 (and EF Core 9 → 10 on .NET 10).

Changes

Source

  • Port MuiValueType to HC16's redesigned ScalarType coercion model: CoerceInputLiteral(IValueNode) + CoerceInputValue(JsonElement) for input, OnCoerceOutputValue(ResultElement) + OnValueToLiteral for output, plus SerializationType and IsValueCompatible — replacing the removed ParseLiteral / ParseValue / TrySerialize / IsInstanceOfType.
  • Bump HotChocolate.* 15.1.14 → 16.3.0.

Dependencies

  • EF Core 9 → 10 (matches HC16's transitive EF10; fixes a runtime MissingMethodException from mixed EF Abstractions/Relational assemblies).

Tests

  • schema.Print()schema.ToString() for the SDL snapshot.
  • Drop SchemaOptions.EnableOneOf (OneOf is on by default in HC16).
  • Read result fields via result.ToJson() — the raw HC16 result object graph is cyclic and OOMs Newtonsoft snapshotting.
  • Errors.Should().BeNull()BeNullOrEmpty() (HC16 returns an empty, not null, error collection on success).
  • ConvertFilterInput passes the enum's GraphQL name (HC16 coerces enums by name, not int).
  • Regenerated SDL + result snapshots.

Verification

All 92 tests green on HC16 (SQLite).

🤖 Generated with Claude Code

cliedeman and others added 2 commits July 2, 2026 08:00
Bump HotChocolate.* 15.1.14 -> 16.3.0. Port MuiValueType to the HC16 ScalarType
coercion model: CoerceInputLiteral(IValueNode) + CoerceInputValue(JsonElement) for input,
OnCoerceOutputValue(ResultElement) + OnValueToLiteral for output, plus SerializationType and
IsValueCompatible (replacing the removed ParseLiteral/ParseValue/TrySerialize/IsInstanceOfType).

src builds clean on HC16. Runtime behaviour + the snapshot test suite are not yet re-verified
against HC16 (SDL snapshots will need regenerating).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Follows the src HC16 port (MuiValueType). Makes the full solution green on HC16.

- EF Core 9.0.0 -> 10.0.0 (net10; matches HC16's transitive EF10 — fixes a runtime
  MissingMethodException from mixed EF Abstractions/Relational assemblies)
- Test suite ported to HC16 API:
  - schema.Print() -> schema.ToString() for the SDL snapshot
  - drop SchemaOptions.EnableOneOf (OneOf is on by default in HC16)
  - IOperationResult removed -> ClientQueryResult.Incremental retyped to object
  - result data is no longer indexable -> read fields via result.ToJson() (InputValue helper)
  - Errors is empty (not null) on success in HC16: BeNull() -> BeNullOrEmpty()
  - snapshot result.ToJson() instead of the raw IExecutionResult (the HC16 result object
    graph is cyclic and OOMs Newtonsoft)
  - ConvertFilterInput passes the enum's GraphQL name (HC16 coerces enums by name, not int)
- Regenerated SDL + result snapshots for HC16

All 92 tests green on HC16 (SQLite).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cliedeman added a commit that referenced this pull request Jul 2, 2026
- Bump EF Core + ASP.NET Core test packages 9.0.0 -> 10.0.0 (aligns with the already-net10
  TFM + SDK 10.0.201; verified HotChocolate 15 works on EF 10)
- README: add a NuGet version badge; .NET badge + 'targets' note net9.0 -> net10.0

HotChocolate stays 15 on main — the HC16 upgrade is PR #3. All 92 tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cliedeman
cliedeman merged commit 5a40c26 into main Jul 2, 2026
3 checks passed
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