Open dzhelezov opened 3 years ago
I noticed that if the interface has both a relationship field and some other fields (ie. Int
), like:
interface MembershipEvent @entity {
"Generic event data"
event: Event!
someOtherField: Int!
}
The codegen does not fail, but:
event
) is skipped in the generated interface class (MembershipEvent
)MembershipBoughEvent
) extends the interface class (ie. MembershipEvent
), but does not override the constructor, so I cannot use:
new MembershipBoughtEvent({ handle: 'abc' })
As this will throw:
Argument of type '{ handle: string; }' is not assignable to parameter of type 'Partial<MembershipEvent>'. Object literal may only specify known properties, and 'handle' does not exist in type 'Partial<MembershipEvent>'.
@metmirr Please close if it's been fixed
hydra-cli codegen fails when run against the following input schema
hydra-cli version: 2.1.0-beta.7