Skip to main content
Version: 4.5

Class: EntityTransformer#

core.EntityTransformer

Constructors#

constructor#

+ new EntityTransformer(): EntityTransformer

Returns: EntityTransformer

Methods#

isVisible#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

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

Returns: boolean

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


processCollection#

Private StaticprocessCollection<T>(prop: keyof T, entity: T, raw: boolean): undefined | T[keyof T]

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
propkeyof T
entityT
rawboolean

Returns: undefined | T[keyof T]

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


processEntity#

Private StaticprocessEntity<T>(prop: keyof T, entity: T, platform: Platform, raw: boolean): undefined | T[keyof T]

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
propkeyof T
entityT
platformPlatform
rawboolean

Returns: undefined | T[keyof T]

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


processProperty#

Private StaticprocessProperty<T>(prop: keyof T & string, entity: T, raw: boolean): undefined | T[keyof T]

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
propkeyof T & string
entityT
rawboolean

Returns: undefined | T[keyof T]

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


propertyName#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

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

Returns: keyof T & string

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


toObject#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameTypeDefault value
entityT-
ignoreFieldsstring[]-
rawbooleanfalse

Returns: EntityData<T>

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

Last updated on by Renovate Bot