Skip to content

Add an abstraction for resolving an executable #8070

@glen-84

Description

@glen-84

Product

Hot Chocolate

Is your feature request related to a problem?

An example of the problem can be found in #6833 (comment).

The solution you'd like

From Michael, something like:

public interface IExecutableResolver
{
    IExecutable<T> Resolve<T>(object source);
}

Registered in the DI container, this would allow for middleware like the SingleOrDefaultMiddleware to execute SingleOrDefaultAsync on the appropriate IExecutable<T> implementation (f.e. EfQueryableExecutable<T>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: DataIssue is related to filtering, sorting, pagination or projections🌶️ hot chocolate

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions