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

            return(applicationBuilder
                   .UseGraphQL(serviceProvider, options));
        }