You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a NodeResolver for that type that has a QueryContext parameter.
Attempt to resolve the node with nodes(ids: [ID!]!).
What is expected?
The nodes resolver works with QueryContext just like the node resolver.
What is actually happening?
A System.InvalidOperationException is thrown with the message "No coercion operator is defined between types 'NodeResolverBugReproduction.Types.Book' and 'NodeResolverBugReproduction.Types.Author'."
Relevant log output
Additional context
There appears to be a copy-paste typo in HotChocolateExecutionSelectionExtensions causing the GetOrCreateNodeExpression branch to only be called for the Node resolver and not the Nodes resolver. (Introduced by this commit.)
Uh oh!
There was an error while loading. Please reload this page.
Product
Hot Chocolate
Version
15.1.0-p.11
Link to minimal reproduction
https://github.com/Tommsy64/HotChocolate-IssueReproductions/blob/main/Program.cs
Steps to reproduce
nodes(ids: [ID!]!)
.What is expected?
The
nodes
resolver works with QueryContext just like thenode
resolver.What is actually happening?
A
System.InvalidOperationException
is thrown with the message "No coercion operator is defined between types 'NodeResolverBugReproduction.Types.Book' and 'NodeResolverBugReproduction.Types.Author'."Relevant log output
Additional context
There appears to be a copy-paste typo in HotChocolateExecutionSelectionExtensions causing the
GetOrCreateNodeExpression
branch to only be called for theNode
resolver and not theNodes
resolver. (Introduced by this commit.)The if statement should be
The text was updated successfully, but these errors were encountered: