Exemple #1
0
 public static IApplicationBuilder UseGraphQL(
     this IApplicationBuilder applicationBuilder,
     IServiceProvider serviceProvider)
 {
     return(applicationBuilder
            .UseGraphQL(serviceProvider, new QueryMiddlewareOptions()));
 }
        public static IApplicationBuilder UseGraphQL(
            this IApplicationBuilder applicationBuilder,
            PathString path)
        {
            var options = new QueryMiddlewareOptions
            {
                Path = path.HasValue ? path : new PathString("/")
            };

            return(applicationBuilder
                   .UseGraphQL(options));
        }
 public static IApplicationBuilder UseGraphQL(
     this IApplicationBuilder applicationBuilder)
 {
     return(applicationBuilder
            .UseGraphQL(new QueryMiddlewareOptions()));
 }