public GraphiqlMiddleware(
     RequestDelegate next,
     GraphiqlMiddlewareOptions options)
 {
     _next    = next;
     _options = options;
 }
Example #2
0
        public static IApplicationBuilder UseGraphiql(
            this IApplicationBuilder builder,
            Action <GraphiqlMiddlewareOptions> configure)
        {
            var options = new GraphiqlMiddlewareOptions();

            configure(options);
            return(builder.UseGraphiql(options));
        }
Example #3
0
 public static IApplicationBuilder UseGraphiql(
     this IApplicationBuilder builder,
     GraphiqlMiddlewareOptions options)
 {
     return(builder.UseMiddleware <GraphiqlMiddleware>(options));
 }