Skip to content

Commit 70497ee

Browse files
authored
Use SubscriptionDocumentExecuter by default (#653)
1 parent 6d22223 commit 70497ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Core/Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GraphQL" Version="4.1.0" />
11+
<!--TODO: remove SystemReactive in v6 -->
12+
<PackageReference Include="GraphQL.SystemReactive" Version="4.1.0" />
1213
<PackageReference Include="GraphQL.DataLoader" Version="4.1.0" />
1314
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.0" />
1415
</ItemGroup>

src/Core/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static IGraphQLBuilder AddGraphQL(this IServiceCollection services, Actio
5050
// This is used instead of "normal" services.Configure(configureOptions) to pass IServiceProvider to user code.
5151
services.AddSingleton<IConfigureOptions<GraphQLOptions>>(x => new ConfigureNamedOptions<GraphQLOptions>(Options.Options.DefaultName, opt => configureOptions(opt, x)));
5252
services.TryAddSingleton<InstrumentFieldsMiddleware>();
53-
services.TryAddSingleton<IDocumentExecuter, DocumentExecuter>();
53+
services.TryAddSingleton<IDocumentExecuter, SubscriptionDocumentExecuter>(); // TODO: rewrite in v6
5454
services.TryAddTransient(typeof(IGraphQLExecuter<>), typeof(DefaultGraphQLExecuter<>));
5555

5656
services.TryAddSingleton<IDocumentWriter>(x =>

0 commit comments

Comments
 (0)