Skip to main content
Version: 2.8

defineRelation

Callable


  • Create a constant relation object between two specified DataTypes.

    That constant is used especially to create queries see Query.follow(relation)


    Type parameters

    Parameters

    • tag: InstanceOrTag

      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