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
Reproduction - add to src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs
[Fact]publicasyncTaskNodeAttribute_On_Extension_With_Renamed_Id(){Snapshot.FullName();awaitnewServiceCollection().AddGraphQL().AddQueryType<QueryEntityRenamed>().AddTypeExtension<EntityExtensionRenamingId>().ExecuteRequestAsync(""" { entity(id: 5) { id data } } """).MatchSnapshotAsync();}publicclassQueryEntityRenamed{publicEntityNoIdGetEntity(intid)=>newEntityNoId{Data=id};}publicclassEntityNoId{publicintData{get;set;}}[Node][ExtendObjectType(typeof(EntityNoId))]publicclassEntityExtensionRenamingId{publicintGetId([Parent]EntityNoIdentity)=>entity.Data;[NodeResolver]publicEntityNoIdGetEntity(intid)=>new(){Data=id,};}
It can be worked around as long as you control the type that will implement the Node interface by adding a read only property Id. Unfortunately if I do not own the type being returned then I cannot find another workaround.
The text was updated successfully, but these errors were encountered:
Product
Hot Chocolate
Version
14.2.0
Link to minimal reproduction
https://github.com/ChilliCream/graphql-platform
Steps to reproduce
Reproduction - add to src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeResolverTests.cs
version 13.9.14 result:
What is expected?
The actual value for the id should have changed due to the new id serializer but the entity should still be returned:
What is actually happening?
version 14.2.0 result:
Relevant log output
Additional context
It can be worked around as long as you control the type that will implement the Node interface by adding a read only property
Id
. Unfortunately if I do not own the type being returned then I cannot find another workaround.The text was updated successfully, but these errors were encountered: