Class MongoClient

Index

Constructor methods

Methods

Constructor methods

constructor(serverConfig: any, options: any): MongoClient

Parameters

  • serverConfig: any
  • options: any

Returns

MongoClient

Methods

public static connect(uri: string, options: any, callback: (err: Error, db: "mongodb".Db) => void)

Parameters

  • uri: string
  • options: any
  • callback: (err: Error, db: "mongodb".Db) => void

public static connect(uri: string, callback: (err: Error, db: "mongodb".Db) => void)

Parameters

  • uri: string
  • callback: (err: Error, db: "mongodb".Db) => void