diff --git a/src/HotChocolate/Core/src/Execution/Serialization/JsonQueryResultFormatter.cs b/src/HotChocolate/Core/src/Execution/Serialization/JsonQueryResultFormatter.cs index daeb5438146..90ff09a24a6 100644 --- a/src/HotChocolate/Core/src/Execution/Serialization/JsonQueryResultFormatter.cs +++ b/src/HotChocolate/Core/src/Execution/Serialization/JsonQueryResultFormatter.cs @@ -372,7 +372,6 @@ private void WriteObjectResult( writer.WriteEndObject(); } -#if NET5_0_OR_GREATER private void WriteListResult( Utf8JsonWriter writer, ListResult list) @@ -389,7 +388,6 @@ private void WriteListResult( writer.WriteEndArray(); } -#endif private void WriteList( Utf8JsonWriter writer, @@ -421,11 +419,10 @@ private void WriteFieldValue( WriteObjectResult(writer, resultMap); break; -#if NET5_0_OR_GREATER case ListResult resultMapList: WriteListResult(writer, resultMapList); break; -#endif + case Dictionary dict: WriteDictionary(writer, dict); break;