Options
All
  • Public
  • Public/Protected
  • All
Menu

class-mongo

Index

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

    • index: IndexRaw

    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

      • (target: any): any
      • Parameters

        • target: any

        Returns any

Generated using TypeDoc