Allow Types to be decorated with @ObjectType() #523
Labels
Community 👨👧
Something initiated by a community
Duplicate 🔑
This issue or pull request already exists
Wontfix ❌
This will not be worked on
Is your feature request related to a problem? Please describe.
In order to reduce required code it would be great to be able to decorate TypeScript types with @ObjectType()
Describe the solution you'd like
Say I have class ApplicationForm
Then I want to use TS utility Omit on ApplicationForm to create SampleApplicationForm , which has no ID
Describe alternatives you've considered
I would like to know if there are any alternatives. The goal is to reduce repeating almost similar datatypes.
Often times the property is available but other times not.
Also very common usecase is being able to specify that property is nullable or not depending on context of query/mutation called.
Additional context
N/A
The text was updated successfully, but these errors were encountered: