Skip to main content
Version: Next

RelationConstructor

Constructors

Constructor

new RelationConstructor(tag, direction?): Relation<CloudObject, CloudObject>;

Create a relation between two CloudObject classes

Parameters

ParameterTypeDescription
tagInstanceOrTagtag of the relation to create
direction?Directionwhether the relation points to the origin or destination

Returns

Relation<CloudObject, CloudObject>

Constructor

new RelationConstructor<O, D>(
tag,
direction?,
origin?,
destination?): Relation<O, D>;

Create a relation between two CloudObject classes

Parameters

ParameterTypeDescription
tagInstanceOrTagtag of the relation to create
direction?Directionwhether the relation points to the origin or destination
origin?Class<O>origin class of the relation
destination?Class<D>destination class of the relation

Returns

Relation<O, D>