defineRelation
Callable
Type parameters
- O: CloudObject<O>
- D: CloudObject<D>
Parameters
tag: Tag
tag of the relation
optionalorigin: Class<O>
origin DataType of the relation
optionaldestination: Class<D>
destination DataType of the relation. Default is
CloudObject
optionaldirection: Direction
direction of the relation, pointing towards origin or destination. Default is
DESTINATION
Returns Relation<O, D>
newly defined relation
Create a constant relation object between two specified DataTypes.
That constant is used especially to create queries see Query.follow(relation)