abstractBaseEntity
Index
Constructors
constructor
Returns BaseEntity
Methods
assign
Parameters
data: Data & IsSubset<EntityData<Naked>, Data>
options: AssignOptions<Convert> = {}
Returns MergeSelected<Entity, Naked, keyof Data & string>
getSchema
Returns undefined | string
init
Parameters
optionaloptions: FindOneOptions<Entity, Hint, Fields, Excludes>
Returns Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
isInitialized
Returns boolean
isTouched
Returns boolean
populate
Parameters
populate: false | AutoPath<Entity, Hint, never, 9>[]
options: EntityLoaderOptions<Entity> = {}
Returns Promise<Loaded<Entity, Hint>>
populated
Parameters
populated: boolean = true
Returns void
serialize
Parameters
optionaloptions: SerializeOptions<Naked, Hint, Exclude>
Returns EntityDTO<Loaded<Naked, Hint>>
setSchema
Parameters
optionalschema: string
Returns void
toObject
Returns EntityDTO<Entity>
toPOJO
Returns EntityDTO<Entity>
toReference
Returns Reference<Entity> & LoadedReference<Loaded<Entity, AddEager<Entity>>>