Creates a $match pipeline stage for the specified filter
Creates a $match pipeline stage for the specified filter
A friendly alias for the match method.
the filter to match against
the $match pipeline stage
Filters
      
    
      
      
    
      
      
    
      Creates a $group pipeline stage for the specified filter
Creates a $group pipeline stage for the specified filter
the expression type
the id expression for the group
zero or more field accumulator pairs
the $group pipeline stage
      
    
      
      
    
      
      
    
      Creates a $limit pipeline stage for the specified filter
Creates a $limit pipeline stage for the specified filter
the limit
the $limit pipeline stage
      
    
      Creates a $lookup pipeline stage for the specified filter
Creates a $lookup pipeline stage for the specified filter
Note:Requires MongoDB 3.2 or greater
the name of the collection in the same database to perform the join with.
specifies the field from the local collection to match values against.
specifies the field in the from collection to match values against.
the name of the new array field to add to the input documents.
the $lookup pipeline stage
1.1
      
    
      Creates a $match pipeline stage for the specified filter
Creates a $match pipeline stage for the specified filter
the filter to match
the $match pipeline stage
Filters
      
    
      
      
    
      
      
    
      
      
    
      Creates a $out pipeline stage for the specified filter
Creates a $out pipeline stage for the specified filter
the collection name
the $out pipeline stage
      
    
      Creates a $project pipeline stage for the specified projection
Creates a $project pipeline stage for the specified projection
the projection
the $project pipeline stage
Projections
      
    
      Creates a $sample pipeline stage with the specified sample size
Creates a $sample pipeline stage with the specified sample size
the sample size
the $sample pipeline stage
1.1
      
    
      Creates a $skip pipeline stage
Creates a $skip pipeline stage
the number of documents to skip
the $skip pipeline stage
      
    
      Creates a $sort pipeline stage for the specified sort specification
Creates a $sort pipeline stage for the specified sort specification
the sort specification
the $sort pipeline stage
Sorts
      
    
      
      
    
      
      
    
      Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a $ sign.
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a $ sign.
the field name, prefixed by a  $ sign
the $unwind pipeline stage
1.1
      
    
      Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a $ sign.
Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a $ sign.
the field name, prefixed by a  $ sign
the $unwind pipeline stage
      
    
      
      
    
      
      
    
      
Builders for aggregation pipeline stages.
1.0
Aggregation pipeline