Functions
dbType
- dbType(CtorMix: TMongoType, mix: Function | { Type: Function; property?: string }): (target: any, propertyKey?: any, descriptor?: any) => void
-
Parameters
-
CtorMix: TMongoType
-
mix: Function | { Type: Function; property?: string }
Returns (target: any, propertyKey?: any, descriptor?: any) => void
-
- (target: any, propertyKey?: any, descriptor?: any): void
-
Parameters
-
target: any
-
Optional propertyKey: any
-
Optional descriptor: any
Returns void
index
- index(index: IndexRaw): any
- index(opts?: IndexOptions): any
- index(name: string, opts?: IndexOptions): any
- index(name: string, type: string | number, opts?: IndexOptions): any
-
Parameters
Returns any
-
Parameters
-
Optional opts: IndexOptions
Returns any
-
Parameters
-
name: string
-
Optional opts: IndexOptions
Returns any
-
Parameters
-
name: string
-
type: string | number
-
Optional opts: IndexOptions
Returns any
table
- table(name: string, options?: IConnectionSettings): (target: any) => any
-
Parameters
-
name: string
-
Optional options: IConnectionSettings
Returns (target: any) => any