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
In v15.0.3, I was able to define all relay node resolvers within my object types, which seemed to work fine and kept type configurations centralized.
After upgrading to v15.1.3, this approach now results in a schema exception: There is no object type implementing interface 'Node'. (HotChocolate.Types.Relay.NodeType)
The solution you'd like
It would be great if this were supported, allowing node resolvers to be inferred within object type definitions. For example, here is an object type I was using in v15.0.3 that didn't raise any schema exceptions:
glen-84
changed the title
allow defining a Relay [NodeResolver] in a [ObjectType<T>]
Allow defining a Relay [NodeResolver] in a [ObjectType<T>]
Apr 9, 2025
Product
Hot Chocolate
Is your feature request related to a problem?
In v15.0.3, I was able to define all relay node resolvers within my object types, which seemed to work fine and kept type configurations centralized.
After upgrading to v15.1.3, this approach now results in a schema exception:
There is no object type implementing interface 'Node'. (HotChocolate.Types.Relay.NodeType)
The solution you'd like
It would be great if this were supported, allowing node resolvers to be inferred within object type definitions. For example, here is an object type I was using in v15.0.3 that didn't raise any schema exceptions:
This was also discussed in this slack discussion, which might provide additional context.
The text was updated successfully, but these errors were encountered: