We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 477b7f4 + e3f8ad6 commit 8cbe46eCopy full SHA for 8cbe46e
src/GraphQL.Client.LocalExecution/ServiceCollectionExtensions.cs
@@ -11,7 +11,7 @@ public static class ServiceCollectionExtensions
11
public static IGraphQLBuilder AddGraphQLLocalExecutionClient<TSchema>(this IServiceCollection services) where TSchema : ISchema
12
{
13
services.AddSingleton<GraphQLLocalExecutionClient<TSchema>>();
14
- services.AddSingleton<IGraphQLClient, GraphQLLocalExecutionClient<TSchema>>();
+ services.AddSingleton<IGraphQLClient>(p => p.GetRequiredService<GraphQLLocalExecutionClient<TSchema>>());
15
return services.AddGraphQL();
16
}
17
0 commit comments