Skip to content
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

Explicit input instantiation escape hatch #1577

Open
david-morris opened this issue Sep 25, 2024 · 0 comments
Open

Explicit input instantiation escape hatch #1577

david-morris opened this issue Sep 25, 2024 · 0 comments

Comments

@david-morris
Copy link

Is your feature request related to a problem? Please describe.

I'm designing a stable external API that needs to wrap our existing fast-moving internal API. Sometimes, I want to call existing resolvers to do that.

However, when using deeply nested inputs with a @property, it's not possible to wrap that input with another (simplified) input, because I can't create an "instance" with the correct parameters on creation.

Describe the solution you'd like
I would like an escape hatch to instantiate inputs.

Describe alternatives you've considered
An inheritance-based mechanism where I could remove fields and structures from a parent might solve the problem, but I don't think it would be as clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant