Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait AsJavaConvertersclass Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Creates a $bucketAuto pipeline stage
Creates a $bucketAuto pipeline stage
Value parameters
- buckets
-
the number of the buckets
- groupBy
-
the criteria to group By
- options
-
the optional values for the $bucketAuto stage
Attributes
- Returns
-
the $bucketAuto pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/
- Since
-
3.4
Merges 2 aggregation pipelines together.
Merges 2 aggregation pipelines together.
Value parameters
- anotherAggregate
-
the aggregate to be merged with
Attributes
- Returns
-
the aggregate pipeline
Creates a $count pipeline stage using the field name "count" to store the result
Creates a $count pipeline stage using the field name "count" to store the result
Attributes
- Returns
-
the $count pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/count/
- Since
-
3.4
Creates a $count pipeline stage using the named field to store the result
Creates a $count pipeline stage using the named field to store the result
Value parameters
- field
-
the field in which to store the count
Attributes
- Returns
-
the $count pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/count/
- Since
-
3.4
Creates a facet pipeline stage
Creates a facet pipeline stage
Value parameters
- facets
-
the facets to use
Attributes
- Returns
-
the $facets pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/facet/
- Since
-
3.4
Creates a graphLookup pipeline stage for the specified filter
Creates a graphLookup pipeline stage for the specified filter
Value parameters
- as
-
name of field in output document
- connectFromField
-
the from field
- connectToField
-
the to field
- from
-
the collection to query
- options
-
optional values for the graphLookup
- startWith
-
the expression to start the graph lookup with
Attributes
- Returns
-
the $graphLookup pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/
- Since
-
3.4
Creates a $group pipeline stage for the specified filter
Creates a $group pipeline stage for the specified filter
Value parameters
- fieldAccumulators
-
zero or more field accumulator pairs
- id
-
the id expression for the group
Attributes
- Returns
-
the $group pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/group/
Creates a $limit pipeline stage for the specified filter
Creates a $limit pipeline stage for the specified filter
Value parameters
- n
-
the limit
Attributes
- Returns
-
the $limit pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/limi/
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using equality match between the local field and the foreign field
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using equality match between the local field and the foreign field
Value parameters
- as
-
the name of the new array field to add to the input documents.
- foreignField
-
the field in the from collection to match values against.
- from
-
the name of the collection in the same database to perform the join with.
- localField
-
the field from the local collection to match values against.
Attributes
- Returns
-
the $lookup pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/
- Since
-
3.2
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline
Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline
Value parameters
- as
-
the name of the new array field to add to the input documents.
- from
-
the name of the collection in the same database to perform the join with.
- pipeline
-
the pipeline to run on the joined collection.
Attributes
- Returns
-
the $lookup pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/
- Since
-
3.7
Creates a $match pipeline stage for the specified filter
Creates a $match pipeline stage for the specified filter
Value parameters
- filter
-
the filter to match
Attributes
- Returns
-
the $match pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/match/
Creates a $merge pipeline stage that merges into the specified collection using the specified options.
Creates a $merge pipeline stage that merges into the specified collection using the specified options.
Value parameters
- collectionName
-
the name of the collection to merge into
- options
-
the merge options
Attributes
- Returns
-
the $merge pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/merge/
- Since
-
3.11
Creates a $out pipeline stage that writes into the specified collection
Creates a $out pipeline stage that writes into the specified collection
Value parameters
- collectionName
-
the collection name
Attributes
- Returns
-
the $out pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/out/
Creates a $out pipeline stage that supports outputting to a different database.
Creates a $out pipeline stage that supports outputting to a different database.
Value parameters
- collectionName
-
the collection name
- databaseName
-
the database name
Attributes
- Returns
-
the $out pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/out/
- Since
-
4.1
Creates a $project pipeline stage for the specified projection
Creates a $project pipeline stage for the specified projection
Value parameters
- projection
-
the projection
Attributes
- Returns
-
the $project pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/project/
Creates a $replaceRoot pipeline stage
Creates a $replaceRoot pipeline stage
With $replaceWith, you can promote an embedded document to the top-level. You can also specify a new document as the replacement.
Value parameters
- value
-
the new root value
Attributes
- Returns
-
the $replaceRoot pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/replaceWith/
- Since
-
3.11
Creates a $sample pipeline stage with the specified sample size
Creates a $sample pipeline stage with the specified sample size
Value parameters
- size
-
the sample size
Attributes
- Returns
-
the $sample pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/sample/
- Since
-
3.2
Creates a $skip pipeline stage
Creates a $skip pipeline stage
Value parameters
- n
-
the number of documents to skip
Attributes
- Returns
-
the $skip pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/skip/
Creates a $sort pipeline stage for the specified sort specification
Creates a $sort pipeline stage for the specified sort specification
Value parameters
- sort
-
the sort specification
Attributes
- Returns
-
the $sort pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/sort/
Creates a $sortByCount pipeline stage for the specified filter
Creates a $sortByCount pipeline stage for the specified filter
Value parameters
- filter
-
the filter specification
Attributes
- Returns
-
the $sortByCount pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/sortByCount/
- Since
-
3.4
Creates a $unionWith pipeline stage.
Creates a $unionWith pipeline stage.
Value parameters
- collection
-
the name of the collection in the same database to perform the union with.
- pipeline
-
the pipeline to run on the union.
Attributes
- Returns
-
the $unionWith pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/unionWith/
- Since
-
4.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.
Value parameters
- fieldName
-
the field name, prefixed by a '$' sign
- unwindOptions
-
options for the unwind pipeline stage
Attributes
- Returns
-
the $unwind pipeline stage https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/
- Since
-
3.2
Inherited methods
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters