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
Describe the bug
When executing a query with a schema defined by an interface with implementations registered, an error is thrown within the error reporting infrastructure.
To Reproduce
Steps to reproduce the behavior:
Define a code-first interface, but don't add the implementation types
Try to do a query that maps these interfaces
Expected behavior
A helpful error would be thrown indicating there was a problem mapping the CLR class to a registered type.
I have fixed also the execution engine code .... the context.Value was wrong in any way since that is the coerced output value. The type should be extracted from the result argument.
But I also added more context here.... the new error message is:
Could not resolve the actual object type from `System.String` for the abstract type `Bar`.
Apart from that the schema now validates interfaces more strict.
If you are in porto typing mode you can opt-out of the strictness with
Describe the bug
When executing a query with a schema defined by an interface with implementations registered, an error is thrown within the error reporting infrastructure.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A helpful error would be thrown indicating there was a problem mapping the CLR class to a registered type.
Additional context
https://github.com/ChilliCream/hotchocolate/blob/89b0a5d97a500e7fd6d16856987e417f524c6e42/src/Core/Core/Execution/Utilities/ValueCompletion.cs#L179
context.Value
is null. Seems like it should be using the name oftype
.The text was updated successfully, but these errors were encountered: