Skip to main content
Version: Next

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