Documentation Language: Swift

Property

opposite

The identifier of the opposite reference in a bidirectional relationship.

var opposite: EUUID?

Discussion

For bidirectional references, this stores the UUID of the opposite reference rather than a direct reference. The opposite reference is resolved through the Resource pattern when needed.

Example: In a Writer.books ↔ Book.authors bidirectional relationship, each reference stores the ID of its opposite.