RelationDefinition
Describes a Relation from a Template or Union to a Template or Union with a declared cardinality.
Remarks
Section titled “Remarks”The Builder registers each Relation on its target’s toRelations under toKey once every App is
built, expanding a Union target to each member Template; a toKey already in use on the target
is a build error.
- Relations
- RelationBuilder for declaring a Relation
- ReadRelationInstance for navigating the Relation from an Item
Properties
Section titled “Properties”cardinality
Section titled “cardinality”
readonlycardinality:RelationCardinality
Cardinality as declared from the from side.
eventPrn?
Section titled “eventPrn?”
readonlyoptionaleventPrn?:string
PRN of the Event published when the Relation is set, added to, removed from or cleared; present
when the Relation was declared with evented(). The Event payload carries action, otherId
and relationPrn.
fromKey
Section titled “fromKey”
readonlyfromKey:string
Key under which the from Template or Union exposes the Relation.
fromTemplatePrn
Section titled “fromTemplatePrn”
readonlyfromTemplatePrn:string
PRN of the Template or Union the Relation is declared on; it is also the prefix of the Relation’s own PRN.
readonlyprn:string
PRN of the Relation, <fromTemplatePrn>/relation/<fromKey>.
readonlytoKey:string
Key under which the target exposes the reverse side, in its toRelations.
readonlytoPrn:string
PRN of the target Template or Union.

