Skip to main content
Version: Next

abstractBaseEntity

Index

Constructors

constructor

Methods

assign

getSchema

  • getSchema(): undefined | string
  • Returns undefined | string

init

  • init<Entity, Hint, Fields, Excludes>(options?: FindOneOptions<Entity, Hint, Fields, Excludes>): Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
  • Type parameters

    Parameters

    Returns Promise<null | Loaded<Entity, Hint, Fields, Excludes>>

isInitialized

  • isInitialized(): boolean
  • Returns boolean

isTouched

  • isTouched(): boolean
  • Returns boolean

populate

populated

  • populated(populated?: boolean): void
  • Parameters

    • populated: boolean = true

    Returns void

serialize

setSchema

  • setSchema(schema?: string): void
  • Parameters

    • optionalschema: string

    Returns void

toObject

  • toObject<Entity>(): EntityDTO<Entity>
  • toObject<Entity>(ignoreFields: never[]): EntityDTO<Entity>
  • toObject<Entity, Ignored>(ignoreFields: Ignored[]): Omit<EntityDTO<Entity>, Ignored>

toPOJO

toReference