Skip to main content

ModelRelations

@webda/content-mapper


Interface: ModelRelations

Defined in: packages/content-mapper/src/module-discovery.ts:651

Relations recorded for a model.

Properties​

behaviors?​

optional behaviors?: object[]

Defined in: packages/content-mapper/src/module-discovery.ts:664

Behaviour-typed attributes.

attribute​

attribute: string

behavior​

behavior: string


optional links?: object[]

Defined in: packages/content-mapper/src/module-discovery.ts:660

Outgoing links, from the ModelLink* family.

model is absent when the target is a type parameter, as on a generic base class — the link is still real and is recorded without it.

attribute​

attribute: string

model?​

optional model?: string

type​

type: string


parent?​

optional parent?: object

Defined in: packages/content-mapper/src/module-discovery.ts:653

Owning model, from a ModelParent<T> attribute.

attribute​

attribute: string

model​

model: string


queries?​

optional queries?: object[]

Defined in: packages/content-mapper/src/module-discovery.ts:662

Reverse lookups, from ModelRelated<T, U, "attr">.

attribute​

attribute: string

model​

model: string

targetAttribute​

targetAttribute: string