Returns a $match aggregation stage
field
String the target field nametarget
unknown the target value
Returns Object an object containing a MongoDb projection object
Returns a $match aggregation stage for all entries of the object
Returns Object an object containing a MongoDb projection object
Returns a $in aggregation stage
Returns Object an object containing a MongoDb projection object
Matches all documents of a collection
Returns Object an object containing a MongoDb match object
Returns a $match aggregation stage
field
String the target field nametarget
unknown the target value
Returns Object an object containing a MongoDb projection object
Returns a $match aggregation stage
field
String the target field nametarget
unknown the target value
Returns Object an object containing a MongoDb projection object
Returns a $match aggregation stage
field
String the target field nametarget
unknown the target value
Returns Object an object containing a MongoDb projection object
Returns a $match aggregation stage
field
String the target field nametarget
unknown the target value
Returns Object an object containing a MongoDb projection object
Returns a $limit aggregation stage
amount
Number the desired maximum number of elements the query should return
Returns Object an object containing a MongoDb projection object
Returns a $sort aggregation stage
projection
Object
Returns Object an object containing a MongoDb projection object
Returns a $sort aggregation stage
field
...String the target field name
Returns Object an object containing a MongoDb projection object
Returns a $sort aggregation stage
field
...String the target field name
Returns Object an object containing a MongoDb projection object
Returns a $sortByCount aggregation stage. Will add required $ prefix to field if missing.
field
String the target field name
Returns Object an object containing a MongoDb projection object
Returns a $unwind aggregation stage. Will add required $ prefix to field if missing.
field
String the target field name
Returns Object an object containing a MongoDb projection object
Returns a $count aggregation stage
Returns Object an object containing a MongoDb projection object
-
$0
Object-
$0.from
-
$0.as
-
$0.localField
-
$0.foreignField
(optional, default'id'
) -
$0.pipeline
(optional, default[]
)
-
from
String the collection to lookup fromas
String name of the merged fieldlocalField
String local field nameforeignField
String field name of thefrom
collectionpipeline
Array pipeline for aggregation of the lookup query
-
options
LookupOptionsoptions.from
options.as
options.localField
options.foreignField
(optional, default'id'
)options.pipeline
(optional, default[]
)
Returns Object
-
$0
Object-
$0.input
-
$0.initialValue
(optional, default{}
) -
$0.inExpression
-
input
String any expression resolving to an arrayinitialValue
any the initial value used for reductioninExpression
Object any expression applied to each element of the array
-
options
ReduceOptionsoptions.input
options.initialValue
(optional, default{}
)options.inExpression
Returns Object
Returns a
expressions
...any a list of expressions that evaluate to an object
Returns Object
-
$0
Object-
$0.vars
-
$0.inExpression
-
vars
Object an object defining additional variables for the expressioninExpression
Object any expression
-
options
LetOptionsoptions.vars
options.inExpression
-
$0
Object-
$0.key
(optional, default'$$this'
) -
$0.value
-
-
options
ToObjectOptions-
options.key
(optional, default'$$this'
) -
options.value
-
strings
...any strings to concat
Returns Object
separator
String separator to be used for joining given stringsstrings
...any strings to concat
Returns Object
Returns Object
Returns Object
fieldName
String the field to return as root
Returns Object
fieldName
String the field to check for existence
Returns Object