Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TypeOrmEntityController

Hierarchy

  • TypeOrmEntityController

Implements

Index

Constructors

constructor

Properties

connection

Readonly invoker

invoker: Invoker

Readonly storageRef

storageRef: TypeOrmStorageRef

Methods

aggregate

  • aggregate<T>(cls: ClassType<T>, pipeline: any[], options?: IAggregateOptions): Promise<any[]>

close

  • close(): Promise<void>

connect

find

  • find<T>(fn: string | Function | ClassType<T>, conditions?: any, options?: IFindOptions): Promise<T[]>

findOne

  • findOne<T>(fn: string | Function | ClassType<T>, conditions?: any, options?: IFindOptions): Promise<T>

forClass

  • forClass(cls: string | Function | IClassRef | ClassType<any>): IEntityRef

getStorageRef

name

  • name(): string

remove

  • remove<T>(object: T | T[], options?: IDeleteOptions): Promise<number>
  • remove<T>(object: ClassType<T>, condition: any, options?: IDeleteOptions): Promise<number>

save

update

  • update<T>(cls: ClassType<T>, condition: any, update: any, options?: IUpdateOptions): Promise<number>

Generated using TypeDoc