I am trying to get the all the properties from the parent class as optional in typegraphl. But when I used Partial with @inputType decorator it throws this error. If I change the decorator to @ObjectType, there seems to be no issue.
@InputType
class Parent {
@Field()
fieldA: string
}
@InputType
class child extends Partial(Parent) {
constructor(){super()}
@Field()
fieldB: string
}
@ChrisLahaye can you please look into this
my versions
"type-graphql": "^2.0.0-beta.2",
"type-graphql-utils": "^2.1.0",
"graphql": "^16.6.0",
I am trying to get the all the properties from the parent class as optional in typegraphl. But when I used Partial with @inputType decorator it throws this error. If I change the decorator to @ObjectType, there seems to be no issue.
@ChrisLahaye can you please look into this
my versions
"type-graphql": "^2.0.0-beta.2",
"type-graphql-utils": "^2.1.0",
"graphql": "^16.6.0",