Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal sealed class JsonResultPatcher
private const string SubPathProp = "subPath";
private const string IdProp = "id";
private JsonObject? _json;
private readonly Dictionary<string, JsonElement> _pendingPaths = new();
private readonly Dictionary<string, JsonElement> _pendingPaths = [];

public void SetResponse(JsonDocument response)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using HotChocolate.AspNetCore.Subscriptions.Protocols.Apollo;
using HotChocolate.AspNetCore.Tests.Utilities;
using HotChocolate.AspNetCore.Tests.Utilities.Subscriptions.Apollo;
using HotChocolate.Execution;
using HotChocolate.Language;
using HotChocolate.Text.Json;
using HotChocolate.Transport.Formatters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using HotChocolate.AspNetCore.Subscriptions.Protocols.GraphQLOverWebSocket;
using HotChocolate.AspNetCore.Tests.Utilities;
using HotChocolate.AspNetCore.Tests.Utilities.Subscriptions.GraphQLOverWebSocket;
using HotChocolate.Execution;
using HotChocolate.Subscriptions.Diagnostics;
using HotChocolate.Text.Json;
using HotChocolate.Transport.Formatters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Runtime.CompilerServices;
using HotChocolate.Configuration;
using HotChocolate.Language;
using HotChocolate.Language.Utilities;
using HotChocolate.Resolvers;
using HotChocolate.Types.Descriptors.Configurations;
using static HotChocolate.Properties.TypeResources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using HotChocolate.Text.Json;

#if FUSION
using HotChocolate.Text.Json;
using static HotChocolate.Fusion.Properties.FusionExecutionResources;

namespace HotChocolate.Fusion.Text.Json;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void IgnoreNullFields_NullStringValue_OmitsField()
{
writer.WriteStartObject();
writer.WritePropertyName("name");
writer.WriteStringValue((string?)null);
writer.WriteStringValue(null);
writer.WritePropertyName("value");
writer.WriteNumberValue(42);
writer.WriteEndObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async ValueTask<IExecutionResult> ExecuteAsync(
requestBuilder.SetVariableValues(CreateVariables(request, out var fileLookup));
if (fileLookup is not null)
{
requestBuilder.Features.Set<IFileLookup>(fileLookup);
requestBuilder.Features.Set(fileLookup);
}
requestBuilder.SetExtensions(request.GetExtensionsOrNull());
requestBuilder.SetGlobalState(request.GetContextDataOrNull());
Expand Down
Loading