method IMongoClient.connect IMongoClient.connect(): Promise<void> Opens the connection. Return Type Promise<void>