Skip to content

ReadRelationInstance

ReadRelationInstance<TItem> = ReadOneRelationInstance<TItem> | ReadManyRelationInstance<TItem>

Navigates a Relation from one of its sides, as exposed by relations on an Item.

TItem extends ReadItem = ReadItem

The type of the target Item.

Relations are always reached from an Item, and the Item’s side fixes the direction. For Employee 0..1 -- assigned --> 0..1 ParkingSpace, employee.relations.assigned navigates from the employee (the source) to the parking space (the target), and parkingSpace.relations.assigned navigates the same Relation the other way. The type discriminator tells whether the side reached holds one target or many.