Version: 4.3

Class: EntityTransformer

Hierarchy

  • EntityTransformer

Methods

isVisible

Static PrivateisVisible<T>(meta: EntityMetadata<T>, prop: keyof T & string, ignoreFields: string[]): boolean

Defined in packages/core/src/entity/EntityTransformer.ts:155

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
metaEntityMetadata<T>
propkeyof T & string
ignoreFieldsstring[]

Returns: boolean


processCollection

Static PrivateprocessCollection<T>(prop: keyof T, entity: T): T[keyof T] | undefined

Defined in packages/core/src/entity/EntityTransformer.ts:212

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
propkeyof T
entityT

Returns: T[keyof T] | undefined


processEntity

Static PrivateprocessEntity<T>(prop: keyof T, entity: T, platform: Platform): T[keyof T] | undefined

Defined in packages/core/src/entity/EntityTransformer.ts:200

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
propkeyof T
entityT
platformPlatform

Returns: T[keyof T] | undefined


processProperty

Static PrivateprocessProperty<T>(prop: keyof T & string, entity: T): T[keyof T] | undefined

Defined in packages/core/src/entity/EntityTransformer.ts:172

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
propkeyof T & string
entityT

Returns: T[keyof T] | undefined


propertyName

Static PrivatepropertyName<T>(meta: EntityMetadata<T>, prop: keyof T & string, platform?: Platform): keyof T & string

Defined in packages/core/src/entity/EntityTransformer.ts:160

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
metaEntityMetadata<T>
propkeyof T & string
platform?Platform

Returns: keyof T & string


toObject

StatictoObject<T>(entity: T, ignoreFields?: string[]): EntityData<T>

Defined in packages/core/src/entity/EntityTransformer.ts:85

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameTypeDefault value
entityT-
ignoreFieldsstring[][]

Returns: EntityData<T>

Last updated on by Martin Adámek