From 5b0d249447ff643d766e0e75618e86ac65d4f222 Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Tue, 12 Jul 2022 21:56:07 +0200 Subject: [PATCH] Fixed query formatter for .NET Core 3.1 (#5239) --- .../src/Execution/Serialization/JsonQueryResultFormatter.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;