Skip to content

ReadOneRelationInstance

Defined in: runtime/relation.ts:54

A relation instance where the cardinality is “1”.

  • BaseRelationInstance<TItem>

TItem extends ReadItem

readonly type: "one"

Defined in: runtime/relation.ts:64

Indicates that an abstract relation instance is cardinality “1”.

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.

Promise<RelatedItem<TItem> | undefined>


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.

BaseReadItem

item is TItem

BaseRelationInstance.isType