graphql-python / graphql-python/graphene

Explicit input instantiation escape hatch

Open
#1,577 0 comments 0 reactions 0 assignees View on GitHub
✨ enhancement
Dominant language
Python
Stars
8.2k
Forks
818
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.