Algebraic types
type Miserable @variant {
hates: String!
}
type HappyPoor @variant {
isMale: boolean
}
union Poor = HappyPoor | Miserable
type MiddleClass @variant {
father: Poor
mother: Poor
}
type Rich @variant {
bank: EntityC
}
union Status = Poor | MiddleClass | HappyPoor | Miserable
type Account @entity {
status: Status!
}Last updated