Fix projection for fluent union list fields#9222
Merged
michaelstaib merged 2 commits intomainfrom Feb 25, 2026
Merged
Conversation
Contributor
Fusion Gateway Performance ResultsSimple Composite Query
Response Times
Deep Recursion Query
Response Times
Variable Batching Throughput
Response Times
Runner 2 = benchmarking-2Run 22421092140 • Commit 50d3b77 • Thu, 26 Feb 2026 00:03:08 GMT |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9222 +/- ##
============================
============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QueryableProjectionScopeExtensions.CreateSelectionto project list/array/set items using the target member element type instead of always using scope runtime typeExpression.Bindtype mismatches for fluentUnionTypelist fields where the union runtime type defaults toobjectUseProjectionover a list field configured as a fluent unionValidation
dotnet test src/HotChocolate/Data/test/Data.Tests/ --filter FullyQualifiedName~Issue5528ReproTests.List_Of_Union_With_Fluent_Api_And_Projection_Does_Not_Throw -f net10.0dotnet test src/HotChocolate/Data/test/Data.Tests/ --filter FullyQualifiedName~QueryContextUnionProjectionTests -f net10.0dotnet test src/HotChocolate/Data/test/Data.Projections.Tests/ -f net10.0Fixes #5528