Exemple #1
0
 public static IServiceCollection AddGraphQL(
     this IServiceCollection services,
     Func <IServiceProvider, ISchema> schemaFactory,
     int maxAllowedRequestSize = 20 * 1000 * 1000) =>
 RequestExecutorBuilderLegacyHelper.SetSchema(
     services
     .AddGraphQLServerCore(maxAllowedRequestSize)
     .AddGraphQL()
     .AddHttpRequestInterceptor()
     .AddSubscriptionServices(),
     schemaFactory)
 .Services;
 public static IServiceCollection AddGraphQL(
     this IServiceCollection services,
     ISchema schema,
     int maxAllowedRequestSize = 20 * 1000 * 1000) =>
 RequestExecutorBuilderLegacyHelper.SetSchema(
     services
     .AddGraphQLServerCore(maxAllowedRequestSize)
     .AddGraphQL()
     .AddDefaultHttpRequestInterceptor()
     .AddSubscriptionServices(),
     schema)
 .Services;