Skip to main content
Version: Next

abstractBaseEntity

Index

Constructors

constructor

Methods

assign

getSchema

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

init

  • init(options?: FindOneOptions<Entity, Hint, Fields, Excludes>): Promise<null | Loaded<Entity, Hint, Fields, Excludes>>
  • 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(): EntityDTO<Entity>
  • toObject(ignoreFields: never[]): EntityDTO<Entity>
  • toObject(ignoreFields: Ignored[]): Omit<EntityDTO<Entity>, Ignored>

toPOJO

toReference