ReadOneRelationInstance
Defined in: runtime/relation.ts:54
A relation instance where the cardinality is “1”.
Extends
Section titled “Extends”BaseRelationInstance<TItem>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TItem extends ReadItem
Properties
Section titled “Properties”
readonlytype:"one"
Defined in: runtime/relation.ts:64
Indicates that an abstract relation instance is cardinality “1”.
Methods
Section titled “Methods”get():
Promise<RelatedItem<TItem> |undefined>
Defined in: runtime/relation.ts:59
Get the currently assigned target for this relation instance. If no current value is set, this will return undefined.
Returns
Section titled “Returns”Promise<RelatedItem<TItem> | undefined>
isType()
Section titled “isType()”isType(
item):item is TItem
Defined in: runtime/relation.ts:48
True if the supplied item is of the correct type for this side of the relation.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”item is TItem
Inherited from
Section titled “Inherited from”BaseRelationInstance.isType