Shane Krueger
Shane Krueger
I’m incredibly honored to be named among this year’s GraphQL Stars! A heartfelt thank you to the amazing community for all your contributions and support. It’s a real privilege to...
Override the WriteJsonResponseAsync method, inspect to see if there are any AccessDeniedError instances within the Errors property of the response, and if so call the base method with the response...
This answer is applicable when using GraphQL.NET Server 7 to host your endpoint.
At the bottom of this section there is a sample demonstrating how to override methods of GraphQLHttpMiddleware and use the derived instance https://github.com/graphql-dotnet/server#graphqlhttpmiddleware
The same technique can be used to return any status code for any validation error. Note that for transport-level errors, including authentication errors, the status code will already be set...
Did you try the code designed as I suggested? It should perform identically without the need to copy the stream or deserialize the response. It does require GraphQL.NET Server 7.0...
Version 8 will return more appropriate status codes from the authorization validation rule in certain cases
This one is probably a bug in GraphQL.NET’s new argument processing and not due to the use of the conventions project. Probably has to do with the use of the...
Attempting to replicate the test, can you see if this schema would somewhat match what you're attempting? ```gql # The Query type type Query { getStuff(path: [String!]!, filter: String): GetStuffResponse!...
So far I cannot reproduce the problem within GraphQL.NET alone that fails using the above sample query. My code so far: ```cs using GraphQL.Types; using Microsoft.Extensions.DependencyInjection; namespace GraphQL.Tests.Bugs; public class...