ReadOneRelationInstance
Navigates a Relation from a side that holds at most one target.
Extends
Section titled “Extends”BaseRelationInstance<TItem>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TItem extends ReadItem
The type of the target Item.
Properties
Section titled “Properties”
readonlytype:"one"
Discriminates this side as holding at most one target.
Methods
Section titled “Methods”get():
Promise<RelatedItem<TItem> |undefined>
Loads the current target of this Relation.
Returns
Section titled “Returns”Promise<RelatedItem<TItem> | undefined>
The target with its Relation metadata, or undefined when no target is set or the target is not
readable by the active principal.
isType()
Section titled “isType()”isType(
item):item is TItem
Reports whether an Item may be a target on this side of the Relation: its Template is the target Template or a member of the target Union.
Parameters
Section titled “Parameters”The Item to test.
Returns
Section titled “Returns”item is TItem
Inherited from
Section titled “Inherited from”BaseRelationInstance.isType

