-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue with variable forwarding in nested fields. #6348
Conversation
…d to nested resolvers
@@ -55,6 +56,17 @@ protected RequestDocumentFormatter(FusionGraphConfiguration configuration) | |||
|
|||
rootSelectionSetNode = new SelectionSetNode(new[] { rootResolver }); | |||
path = p; | |||
|
|||
var variables = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why an immutable dictionary. Those have bad lookup perf.
src/HotChocolate/Fusion/src/Core/Planning/RequestFormatters/RequestDocumentFormatter.cs
Outdated
Show resolved
Hide resolved
@@ -96,6 +97,21 @@ protected RequestDocumentFormatter(FusionGraphConfiguration configuration) | |||
executionStep, | |||
rootSelection.Selection, | |||
field); | |||
|
|||
if (!rootSelection.Selection.Arguments.IsFullyCoercedNoErrors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already did traverse the graph for variables but did forget this branch.
Kudos, SonarCloud Quality Gate passed! |
No description provided.