Skip to main content
Version: 6.4

IWrappedEntity <Entity>

Index

Methods

assign

getSchema

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

init

  • init(options?: FindOneOptions<Entity, Hint, Fields, Exclude>): Promise<null | Loaded<Entity, Hint, Fields, Exclude>>
  • Parameters

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

isInitialized

  • isInitialized(): boolean
  • Returns boolean

isManaged

  • isManaged(): boolean
  • Returns boolean

isTouched

  • isTouched(): boolean
  • Returns boolean

populate

populated

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

    • optionalpopulated: boolean

    Returns void

serialize

setSchema

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

    • optionalschema: string

    Returns void

setSerializationContext

  • setSerializationContext(options: LoadHint<Entity, Hint, Fields, Exclude>): void
  • Parameters

    • options: LoadHint<Entity, Hint, Fields, Exclude>

    Returns void

toJSON

  • toJSON(...args: any[]): EntityDTO<Entity, never>
  • Parameters

    • rest...args: any[]

    Returns EntityDTO<Entity, never>

toObject

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

toPOJO

toReference