Interface IEntityController
Methods
aggregate
- aggregate<T>(baseClass: CLS_DEF<T>, pipeline: any[], options?: IAggregateOptions): Promise<any[]>
-
Type parameters
Parameters
-
-
pipeline: any[]
-
Optional options: IAggregateOptions
Returns Promise<any[]>
find
-
Type parameters
Parameters
Returns Promise<T[]>
findOne
-
Type parameters
Parameters
Returns Promise<T>
forClass
- forClass(cls: CLS_DEF<any>): IEntityRef
-
Parameters
Returns IEntityRef
remove
- remove<T>(object: T | T[], options?: IDeleteOptions): Promise<number>
- remove<T>(cls: CLS_DEF<T>, condition?: any, options?: IDeleteOptions): Promise<number>
-
Type parameters
Parameters
-
object: T | T[]
-
Optional options: IDeleteOptions
Returns Promise<number>
-
Type parameters
Parameters
-
-
Optional condition: any
-
Optional options: IDeleteOptions
Returns Promise<number>
save
-
Type parameters
Parameters
Returns Promise<T>
-
Type parameters
Parameters
Returns Promise<T[]>
update
-
Type parameters
Parameters
-
-
condition: any
-
update: any
-
Returns Promise<number>