Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
mongoose
Aggregate
Class Aggregate
Index
Constructor methods
constructor
Methods
append
exec
group
limit
match
near
project
read
select
skip
sort
unwind
Constructor methods
constructor
(
options
?:
Array<Object>
)
:
Aggregate
Parameters
options?:
Array<Object>
optional
Returns
Aggregate
Methods
public
append
(
options
?:
Array<Object>
)
:
Aggregate
Parameters
options?:
Array<Object>
optional
Returns
Aggregate
public
exec
(
callback
?:
(err: any, result: T) => void
)
:
Promise
Parameters
callback?:
(err: any, result: T) => void
optional
Returns
Promise
public
group
(
arg
:
Object
)
:
Aggregate
Parameters
arg:
Object
Returns
Aggregate
public
limit
(
num
:
number
)
:
Aggregate
Parameters
num:
number
Returns
Aggregate
public
match
(
arg
:
Object
)
:
Aggregate
Parameters
arg:
Object
Returns
Aggregate
public
near
(
parameters
:
Object
)
:
Aggregate
Parameters
parameters:
Object
Returns
Aggregate
public
project
(
arg
:
string
)
:
Aggregate
Parameters
arg:
string
Returns
Aggregate
public
project
(
arg
:
Object
)
:
Aggregate
Parameters
arg:
Object
Returns
Aggregate
public
read
(
pref
:
string
, tags
?:
Array<Object>
)
:
Aggregate
Parameters
pref:
string
tags?:
Array<Object>
optional
Returns
Aggregate
public
select
(
filter
:
string
)
:
Aggregate
Parameters
filter:
string
Returns
Aggregate
public
skip
(
num
:
number
)
:
Aggregate
Parameters
num:
number
Returns
Aggregate
public
sort
(
arg
:
string
)
:
Aggregate
Parameters
arg:
string
Returns
Aggregate
public
sort
(
arg
:
Object
)
:
Aggregate
Parameters
arg:
Object
Returns
Aggregate
public
unwind
(
fiels
:
string
, rest
?:
Array<string>
)
:
Aggregate
Parameters
fiels:
string
rest?:
Array<string>
optional
Returns
Aggregate
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
constructor
append
exec
group
limit
match
near
project
read
select
skip
sort
unwind
Mongoose
Promise
Query
Schema
SchemaType
VirtualType
connect
createConnection
disconnect
get
model
modelNames
plugin
set