Skip to content

ASP .NET 6 Web application with multiple schemas and GraphQLHttpMiddleware issue. #946

Answered by Shane32
wremert asked this question in Q&A
Discussion options

You must be logged in to vote

Change IDocumentExecuter to IDocumentExecuter<TSchema> here:

public class DatalayerMiddleWare<TSchema> : GraphQLHttpMiddleware where TSchema : ISchema
{
    private readonly IUserHandler _userHandler;
    private readonly ILogger<EndpointMetrics> _logger;

    public DatalayerMiddleWare(RequestDelegate next, IGraphQLTextSerializer serializer, IDocumentExecuter<TSchema> documentExecuter, IServiceScopeFactory serviceScopeFactory, GraphQLHttpMiddlewareOptions options, IHostApplicationLifetime hostApplicationLifetime, IUserHandler userHandler, ILogger<EndpointMetrics> logger) : base(next, serializer, documentExecuter, serviceScopeFactory, options, hostApplicationLifetime)
    {
        _userH…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@wremert
Comment options

Comment options

You must be logged in to vote
2 replies
@wremert
Comment options

@Shane32
Comment options

Answer selected by wremert
Comment options

You must be logged in to vote
1 reply
@wremert
Comment options

Comment options

You must be logged in to vote
2 replies
@wremert
Comment options

@Shane32
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants