From 80046433304de154819eb42aad2d41588aba2ef6 Mon Sep 17 00:00:00 2001 From: PascalSenn Date: Sat, 16 Nov 2024 10:23:53 +0100 Subject: [PATCH] Fixed URL-safe ID serialization (#7724) --- .../Types/Relay/Serialization/OptimizedNodeIdSerializer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HotChocolate/Core/src/Types/Types/Relay/Serialization/OptimizedNodeIdSerializer.cs b/src/HotChocolate/Core/src/Types/Types/Relay/Serialization/OptimizedNodeIdSerializer.cs index c34f25cf31c..c487cbddd01 100644 --- a/src/HotChocolate/Core/src/Types/Types/Relay/Serialization/OptimizedNodeIdSerializer.cs +++ b/src/HotChocolate/Core/src/Types/Types/Relay/Serialization/OptimizedNodeIdSerializer.cs @@ -34,7 +34,8 @@ internal OptimizedNodeIdSerializer( _stringSerializerMap = boundSerializers.ToFrozenDictionary( t => t.TypeName, - t => new Serializer(t.TypeName, t.Serializer, outputNewIdFormat, _urlSafeBase64)); + t => new Serializer(t.TypeName, t.Serializer, outputNewIdFormat, urlSafeBase64)); + _serializers = allSerializers; _spanSerializerMap = new SpanSerializerMap(); foreach (var serializer in _stringSerializerMap.Values)