Skip to content

ReadManyRelationInstance

Navigates a Relation from a side that holds any number of targets.

Relate items

  • BaseRelationInstance<TItem>

TItem extends ReadItem

The type of the target Items.

readonly type: "many"

Discriminates this side as holding any number of targets.

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.

BaseReadItem

The Item to test.

item is TItem

BaseRelationInstance.isType


select(options?): TemplateItemCursorSelector<RelatedItem<TItem>>

Starts a selection over the targets of this Relation, each carrying its Relation metadata.

RelationSelectOptions

Whether to include targets whose Relation has been removed.

TemplateItemCursorSelector<RelatedItem<TItem>>

The selection accepts the same narrowing, filtering, sorting and paging as any Template selection, including archived.