Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
mongoose
Mongoose
Class Mongoose
Index
Properties
connection
mongo
mquery
version
Methods
connect
createConnection
disconnect
get
model
modelNames
plugin
set
Properties
public
connection
:
Connection
public
mongo
:
any
public
mquery
:
any
public
version
:
string
Methods
public
connect
(
uri
:
string
, options
?:
ConnectionOption
, callback
?:
(err: any) => void
)
:
Mongoose
Parameters
uri:
string
options?:
ConnectionOption
optional
callback?:
(err: any) => void
optional
Returns
Mongoose
public
createConnection
(
)
:
Connection
Returns
Connection
public
createConnection
(
uri
:
string
, options
?:
Object
)
:
Connection
Parameters
uri:
string
options?:
Object
optional
Returns
Connection
public
createConnection
(
host
:
string
, database_name
:
string
, port
?:
number
, options
?:
ConnectionOption
)
:
Connection
Parameters
host:
string
database_name:
string
port?:
number
optional
options?:
ConnectionOption
optional
Returns
Connection
public
disconnect
(
callback
?:
(err?: any) => void
)
:
Mongoose
Parameters
callback?:
(err?: any) => void
optional
Returns
Mongoose
public
get
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
public
model
(
name
:
string
, schema
:
Schema
, collection
?:
string
, skipInit
?:
boolean
)
:
Model
Parameters
name:
string
schema:
Schema
collection?:
string
optional
skipInit?:
boolean
optional
Returns
Model
public
modelNames
(
)
:
Array<string>
Returns
Array<string>
public
plugin
(
plugin
:
(schema: "mongoose".Schema, options?: Object) => void
, options
?:
Object
)
:
Mongoose
Parameters
plugin:
(schema: "mongoose".Schema, options?: Object) => void
options?:
Object
optional
Returns
Mongoose
public
set
(
key
:
string
, value
:
any
)
Parameters
key:
string
value:
any
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
mongoose
mongoose.Types
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
connection
mongo
mquery
version
Collection
Connection
ConnectionOption
ConnectionSetOption
Document
FindAndUpdateOption
GeoSearchOption
MapReduceOption
MapReduceOption2
MapReduceResult
Model
PopulateOption
QueryStream
SchemaOption
Aggregate
Mongoose
connection
mongo
mquery
version
connect
createConnection
disconnect
get
model
modelNames
plugin
set
Promise
Query
Schema
SchemaType
VirtualType
connect
createConnection
disconnect
get
model
modelNames
plugin
set