ModelRelations
Interface: ModelRelations
Defined in: packages/content-mapper/src/module-discovery.ts:651
Relations recorded for a model.
Properties
behaviors?
optionalbehaviors?:object[]
Defined in: packages/content-mapper/src/module-discovery.ts:664
Behaviour-typed attributes.
attribute
attribute:
string
behavior
behavior:
string
links?
optionallinks?: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?
optionalmodel?:string
type
type:
string
parent?
optionalparent?: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?
optionalqueries?: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