Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
mongoose
Dynamic module mongoose
Index
Variables
connection
mongo
mquery
version
Modules
Types
Interfaces
Collection
Connection
ConnectionOption
ConnectionSetOption
Document
FindAndUpdateOption
GeoSearchOption
MapReduceOption
MapReduceOption2
MapReduceResult
Model
PopulateOption
QueryStream
SchemaOption
Classes
Aggregate
Mongoose
Promise
Query
Schema
SchemaType
VirtualType
Functions
connect
createConnection
disconnect
get
model
modelNames
plugin
set
Variables
connection
:
Connection
mongo
:
any
mquery
:
any
version
:
string
Functions
connect
(
uri
:
string
, options
?:
ConnectionOption
, callback
?:
(err: any) => void
)
:
Mongoose
Parameters
uri:
string
options?:
ConnectionOption
optional
callback?:
(err: any) => void
optional
Returns
Mongoose
createConnection
(
)
:
Connection
Returns
Connection
createConnection
(
uri
:
string
, options
?:
ConnectionOption
)
:
Connection
Parameters
uri:
string
options?:
ConnectionOption
optional
Returns
Connection
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
disconnect
(
callback
?:
(err?: any) => void
)
:
Mongoose
Parameters
callback?:
(err?: any) => void
optional
Returns
Mongoose
get
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
model
(
name
:
string
, schema
:
Schema
, collection
?:
string
, skipInit
?:
boolean
)
:
Model
Parameters
name:
string
schema:
Schema
collection?:
string
optional
skipInit?:
boolean
optional
Returns
Model
modelNames
(
)
:
Array<string>
Returns
Array<string>
plugin
(
plugin
:
(schema: "mongoose".Schema, options?: Object) => void
, options
?:
Object
)
:
Mongoose
Parameters
plugin:
(schema: "mongoose".Schema, options?: Object) => void
options?:
Object
optional
Returns
Mongoose
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
Promise
Query
Schema
SchemaType
VirtualType
connect
createConnection
disconnect
get
model
modelNames
plugin
set