You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
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",
The text was updated successfully, but these errors were encountered: