MongooseModuleOptions


interface MongooseModuleOptions extends ConnectOptions {
  uri?: string
  retryAttempts?: number
  retryDelay?: number
  connectionName?: string
  connectionFactory?: (connection: any, name: string) => any
  connectionErrorFactory?: (error: MongooseError) => MongooseError
  lazyConnection?: boolean
}

Properties

Property Description
uri?: string
retryAttempts?: number
retryDelay?: number
connectionName?: string
connectionFactory?: (connection: any, name: string) => any
connectionErrorFactory?: (error: MongooseError) => MongooseError
lazyConnection?: boolean