Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
mongodb
MongoClient
Class MongoClient
Index
Constructor methods
constructor
Methods
connect
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
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
mongodb
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
Collection
CollectionCreateOptions
CollectionFindOptions
DbCreateOptions
IndexOptions
MapReduceOptions
MongoCollectionOptions
PKFactory
ServerOptions
SocketOptions
Cursor
CursorStream
Db
MongoClient
constructor
connect
ObjectID
ReadPreference
Server