Running your github code I get the following exception:
InvalidOperationException: Cannot execute request if no query is specified GraphQL.DocumentExecuter.ExecuteAsync(ExecutionOptions options) in DocumentExecuter.cs GraphQL.Server.DefaultGraphQLExecuter.ExecuteAsync(string operationName, string query, Inputs variables, IDictionary context, IServiceProvider requestServices, CancellationToken cancellationToken) in DefaultGraphQLExecuter.cs GraphQL.Server.Transports.AspNetCore.GraphQLHttpMiddleware.InvokeAsync(HttpContext context) in GraphQLHttpMiddleware.cs Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Any idea? Thanks
Do you send any queries?
I've tried with valid query and don't have any problems.
You can use (your ip)/ui/altair to try the GraphQL.
You will get that error when try to access directly without send any "query".
Sorry it was my mistake. Your solution works properly.
You don't need to be sorry. It's great when people ask me to solve their problems.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Running your github code I get the following exception:
InvalidOperationException: Cannot execute request if no query is specified
GraphQL.DocumentExecuter.ExecuteAsync(ExecutionOptions options) in DocumentExecuter.cs
GraphQL.Server.DefaultGraphQLExecuter.ExecuteAsync(string operationName, string query, Inputs variables, IDictionary context, IServiceProvider requestServices, CancellationToken cancellationToken) in DefaultGraphQLExecuter.cs
GraphQL.Server.Transports.AspNetCore.GraphQLHttpMiddleware.InvokeAsync(HttpContext context) in GraphQLHttpMiddleware.cs
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Any idea?
Thanks
Do you send any queries?
I've tried with valid query and don't have any problems.
You can use (your ip)/ui/altair to try the GraphQL.
You will get that error when try to access directly without send any "query".
Sorry it was my mistake. Your solution works properly.
You don't need to be sorry. It's great when people ask me to solve their problems.