Relationships are now of two types: association and inheritance. This is handled using a relationshipType attribute. Relationships of a different type allow for different attributes, or different ranges for the same attribute. When this is the case, we should use interfaces and type guards to provide better typing and require less if/else logic.
Relationships are now of two types: association and inheritance. This is handled using a
relationshipType
attribute. Relationships of a different type allow for different attributes, or different ranges for the same attribute. When this is the case, we should use interfaces and type guards to provide better typing and require less if/else logic.