Skip to main content

@webda/coreReadme | API


Type alias: ModelsMapped<T, K, L>

ModelsMapped<T, K, L>: Readonly<ModelMapLoader<T, L>[]>

Define a ModelMap attribute

K is used by the compiler to define the field it comes from

This will instructed a ModelMapper to deduplicate information from the T model into this current model attribute.

The attribute where the current model uuid is found is defined by K The attributes to dedepulicate are defined by the L type

In the T model, the K attribute should be of type ModelLink

Type parameters

T extends CoreModel

K extends FilterAttributes<T, ModelLinker>

L extends Attributes<T>

Source

packages/core/src/models/relations.ts:335