Skip to content

Add an abstraction for resolving an executable #8070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glen-84 opened this issue Feb 26, 2025 · 0 comments
Open

Add an abstraction for resolving an executable #8070

glen-84 opened this issue Feb 26, 2025 · 0 comments
Labels
Area: Data Issue is related to filtering, sorting, pagination or projections 🌶️ hot chocolate
Milestone

Comments

@glen-84
Copy link
Collaborator

glen-84 commented Feb 26, 2025

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>).

@glen-84 glen-84 added the Area: Data Issue is related to filtering, sorting, pagination or projections label Feb 26, 2025
@michaelstaib michaelstaib added this to the HC-15.2.0 milestone Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Data Issue is related to filtering, sorting, pagination or projections 🌶️ hot chocolate
Projects
None yet
Development

No branches or pull requests

2 participants