Skip to main content

@webda/coreReadme | API


Class: ModelMapLoaderImplementation<T, K>

Mapper attribute (target of a Mapper service)

This is not exported as when mapped the target is always an array TODO Handle 1:1 map

Type parameters

T extends CoreModel

K = any

Constructors

new ModelMapLoaderImplementation(model, data, parent)

new ModelMapLoaderImplementation<T, K>(model, data, parent): ModelMapLoaderImplementation<T, K>

Parameters

model: CoreModelDefinition<T>

data: Object & K

parent: CoreModel

Returns

ModelMapLoaderImplementation<T, K>

Source

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

Properties

_model

protected _model: CoreModelDefinition<T>

Source

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


_parent

protected _parent: CoreModel

Source

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


uuid

uuid: string

The uuid of the object

Source

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

Methods

get()

get(): Promise<T>

Returns

Promise<T>

the model

Source

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