RelationDefinition
Defined in: definition/relation.ts:15
A relation between two templates with defined cardinality. See: https://www.notion.so/pynhq/Relations-79955450f72a4e03877b212e8605ca7d?pvs=4
Properties
Section titled “Properties”cardinality
Section titled “cardinality”
readonlycardinality:RelationCardinality
Defined in: definition/relation.ts:19
Cardinality of the from-to relation.
eventPrn
Section titled “eventPrn”
readonlyeventPrn:string|undefined
Defined in: definition/relation.ts:24
Flags that setting, updating, and removing this relation will fire an event.
fromKey
Section titled “fromKey”
readonlyfromKey:string
Defined in: definition/relation.ts:29
The key on the “from” template.
fromTemplatePrn
Section titled “fromTemplatePrn”
readonlyfromTemplatePrn:string
Defined in: definition/relation.ts:41
The PRN of the “from” template. This is also implied in the PRN of the relation itself, as the relation root if the from template.
readonlyprn:string
Defined in: definition/relation.ts:51
The PRN of this relation itself.
readonlytoKey:string
Defined in: definition/relation.ts:34
The key on the “to” template.
readonlytoPrn:string
Defined in: definition/relation.ts:46
The PRN of the “to” template or union.