AggregationFramework
The aggregation framework for this collection
Attributes
- Graph
- Supertypes
- Self type
- AggregationFramework.type
Members list
Type members
Inherited classlikes
The $addToSet group accumulator.
The $addToSet group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$addFields stage .
$addFields stage .
$addFields stage .
Attributes
- Since:
MongoDB 3.4
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $addToSet group accumulator.
The $addToSet group accumulator.
Attributes
- addToSetExpr
the
$addToSet
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Ascending sort order
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
'''EXPERIMENTAL:''' See AtlasSearch$
'''EXPERIMENTAL:''' See AtlasSearch$
Attributes
- index
the index name (optional)
- Inherited from:
- AtlasSearchAggregation (hidden)
- Graph
- Supertypes
'''EXPERIMENTAL:''' Atlas Search (only on MongoDB Atlas)
'''EXPERIMENTAL:''' Atlas Search (only on MongoDB Atlas)
Attributes
- Inherited from:
- AtlasSearchAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $avg group accumulator.
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $avg group accumulator.
The $avg group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$bucket aggregation stage .
$bucket aggregation stage .
$bucket aggregation stage .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$bucket aggregation stage .
$bucket aggregation stage .
$bucket aggregation stage .
Attributes
- Since:
MongoDB 3.4 Categorizes incoming documents into a specific number of groups, called buckets, based on a specified expression. Bucket boundaries are automatically determined in an attempt to evenly distribute the documents into the specified number of buckets. Document fields identifier must be prefixed with
$
.- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Low level pipeline operator which allows to open a tailable cursor against subsequent change events of a given collection.
Low level pipeline operator which allows to open a tailable cursor against subsequent change events of a given collection.
For common use-cases, you might prefer to use the watch
operator on a collection.
'''Note:''' the target mongo instance MUST be a replica-set (even in the case of a single node deployement).
Attributes
- Since:
MongoDB 3.6
- Inherited from:
- ChangeStreamAggregation
- Graph
- Supertypes
Attributes
- Inherited from:
- ChangeStreamAggregation
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$collStats aggregation stage .
$collStats aggregation stage .
$collStats aggregation stage .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$count of the number of documents input .
$count of the number of documents input .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
$count of the number of documents input
$count of the number of documents input
Attributes
- Since:
MongoDB 3.4
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Since:
MongoDB 3.6
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- batchSize
the initial batch size for the cursor
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Descending sort order
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$documents stage
$documents stage
Attributes
- expression
the documents expression
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
$documents stage
$documents stage
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$facet .
Performs $facet stage, to process multiple aggregation pipelines within a single stage on the same set of input documents.
Performs $facet stage, to process multiple aggregation pipelines within a single stage on the same set of input documents.
Each sub-pipeline has its own field in the output document where its results are stored as an array of documents.
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $filter aggregation stage.
The $filter aggregation stage.
Attributes
- as
The variable name for the element in the input array. The as expression accesses each element in the input array by this variable.
- cond
the expression that determines whether to include the element in the resulting array
- input
the expression that resolves to an array
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Filter companion
Filter companion
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $field group accumulator.
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $field group accumulator.
The $field group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$geoNear aggregation stage, that outputs documents in order of nearest to farthest from a specified point.
$geoNear aggregation stage, that outputs documents in order of nearest to farthest from a specified point.
Attributes
- distanceField
the output field that contains the calculated distance
- distanceMultiplier
the factor to multiply all distances returned by the query
- includeLocs
this specifies the output field that identifies the location used to calculate the distance
- limit
the maximum number of documents to return (no longer supported since MongoDB 4.2)
- maxDistance
the maximum distance from the center point that the documents can be
- near
the point for which to find the closest documents
- query
limits the results to the matching documents
- spherical
if using a 2dsphere index
- uniqueDocs
if this value is true, the query returns a matching document once
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $graphLookup aggregation stage.
The $graphLookup aggregation stage.
Attributes
- as
the name of the array field added to each output document
- connectFromField
the field name whose value
$graphLookup
uses to recursively match against theconnectToField
of other documents in the collection- connectToField
the field name in other documents against which to match the value of the field specified by the
connectFromField
parameter- depthField
an optional name for a field to add to each traversed document in the search path
- from
the target collection for the $graphLookup operation to search
- maxDepth
an optional non-negative integral number specifying the maximum recursion depth
- restrictSearchWithMatch
an optional filter expression
- startWith
the expression that specifies the value of the
connectFromField
with which to start the recursive search- Since:
MongoDB 3.4
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$groups documents together to calculate aggregates on document collections .
$groups documents together to calculate aggregates on document collections .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
$groups documents together to calculate aggregates on document collections .
$groups documents together to calculate aggregates on document collections .
This command aggregates on arbitrary identifiers.
Document fields identifier must be prefixed with $
.
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$groups documents together to calculate aggregates on document collections. This command aggregates on one field.
$groups documents together to calculate aggregates on document collections. This command aggregates on one field.
Attributes
- idField
the name of the field to aggregate on
- ops
the sequence of operators specifying aggregate calculation
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Factory to declare custom call to a group function.
Factory to declare custom call to a group function.
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Represents one of the group/accumulator operators,
for the $group
aggregation. Operation.
Represents one of the group/accumulator operators,
for the $group
aggregation. Operation.
Attributes
- See also:
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class AddFieldToSetclass AddToSetclass Avgclass AvgFieldclass Firstclass FirstFieldclass Lastclass LastFieldclass Maxclass MaxFieldclass MergeObjectsclass Minclass MinFieldclass Pushclass PushFieldclass StdDevPopclass StdDevPopFieldclass StdDevSampclass StdDevSampFieldclass Sumobject SumAll.typeclass SumFieldclass SumValue
$groups documents together to calculate aggregates on document collections. This command aggregates on multiple fields, and they must be named.
$groups documents together to calculate aggregates on document collections. This command aggregates on multiple fields, and they must be named.
Attributes
- idFields
The fields to aggregate on, and the names they should be aggregated under.
- ops
the sequence of operators specifying aggregate calculation
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- ops
the number of operations that used the index
- since
the time from which MongoDB gathered the statistics
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$indexStats aggregation stage.
$indexStats aggregation stage.
Attributes
- Since:
MongoDB 3.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait PipelineOperatorclass Objecttrait Matchableclass Any
Attributes
- accesses
the index statistics
- host
the hostname and port of the mongod
- key
the key specification
- name
the index name
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $field group accumulator.
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $field group accumulator.
The $field group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$limits the number of documents that pass through the stream.
$limits the number of documents that pass through the stream.
Attributes
- limit
the number of documents to allow through
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$listLocalSessions aggregation stage.
$listLocalSessions aggregation stage.
Attributes
- Since:
MongoDB 3.6
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$listSessions aggregation stage.
$listSessions aggregation stage.
Attributes
- Since:
MongoDB 3.6
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing .
Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing .
Attributes
- See also:
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing .
Performs a left outer join to an unsharded collection in the same database to filter in documents from the "joined" collection for processing .
Attributes
- See also:
- Since:
MongoDB 3.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Performs an uncorrelated lookup .
Performs an uncorrelated lookup .
Attributes
- See also:
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Performs an uncorrelated lookup .
Performs an uncorrelated lookup .
Attributes
- See also:
- Since:
MongoDB 3.6
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Filters out documents from the stream that do not match the predicate .
Filters out documents from the stream that do not match the predicate .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Filters out documents from the stream that do not match the predicate .
Filters out documents from the stream that do not match the predicate .
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $max group accumulator.
The $max group accumulator.
Attributes
- maxExpr
the
$max
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $max group accumulator.
The $max group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$merge aggregation stage.
$merge aggregation stage.
Attributes
- Since:
MongoDB 4.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $mergeObjects group accumulator.
The $mergeObjects group accumulator.
Attributes
- mergeExpr
the
$mergeObjects
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object TextScore.type
Metadata sort order.
Metadata sort order.
Attributes
- keyword
the metadata keyword to sort by
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $min group accumulator.
The $min group accumulator.
Attributes
- minExpr
the
$min
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $min group accumulator.
The $min group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Takes the documents returned by the aggregation pipeline and writes them to a specified collection
Takes the documents returned by the aggregation pipeline and writes them to a specified collection
Attributes
- collection
the name of the output collection
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Only for advanced user: Factory for stage not already provided in the API.
Only for advanced user: Factory for stage not already provided in the API.
For example for { $sample: { size: 2 } }
import reactivemongo.api.bson.BSONDocument
import reactivemongo.api.bson.collection.BSONCollection
def foo(coll: BSONCollection) =
coll.aggregateWith[BSONDocument]() { agg =>
import agg.PipelineOperator
List(PipelineOperator(BSONDocument(
f"$$sample" -> BSONDocument("size" -> 2))))
}
Attributes
- Inherited from:
- AggregationPipeline (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
One of MongoDBs pipeline operators for aggregation. Sealed as these are defined in the MongoDB specifications, and clients should not have custom operators.
One of MongoDBs pipeline operators for aggregation. Sealed as these are defined in the MongoDB specifications, and clients should not have custom operators.
Attributes
- Inherited from:
- AggregationPipeline (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class AddFieldsclass AtlasSearchclass Bucketclass BucketAutoclass ChangeStreamclass CollStatsclass Countclass CurrentOpclass Documentsclass Facetclass GeoNearclass GraphLookupclass Groupclass GroupFieldclass GroupMultiobject IndexStats.typeclass Limitclass ListLocalSessionsclass ListSessionsclass Lookupclass LookupPipelineclass Matchclass Mergeclass Outobject PlanCacheStats.typeclass Projectclass Redactclass ReplaceRootclass ReplaceRootFieldclass ReplaceWithclass Sampleclass Setclass Skipclass Sliceclass Sortclass SortByCountclass SortByFieldCountclass UnionWithclass Unsettrait Unwindclass UnwindField
$planCacheStats aggregation stage.
$planCacheStats aggregation stage.
Attributes
- Since:
MongoDB 4.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait PipelineOperatorclass Objecttrait Matchableclass Any
Reshapes a document stream by renaming, adding, or removing fields. Also uses Project to create computed values or sub-objects.
Reshapes a document stream by renaming, adding, or removing fields. Also uses Project to create computed values or sub-objects.
Attributes
- specifications
The fields to include. The resulting objects will contain only these fields.
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $push group accumulator.
The $push group accumulator.
Attributes
- pushExpr
the
$push
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $push group accumulator.
The $push group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Restricts the contents of the documents based on information stored in the documents themselves. http://docs.mongodb.org/manual/reference/operator/aggregation/redact/#pipe._S_redact Redact
Restricts the contents of the documents based on information stored in the documents themselves. http://docs.mongodb.org/manual/reference/operator/aggregation/redact/#pipe._S_redact Redact
Attributes
- expression
the redact expression
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot
Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot
Attributes
- newRoot
The new root object
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot
Promotes a specified document to the top level and replaces all other fields. The operation replaces all existing fields in the input document, including the _id field. https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot
Attributes
- newRoot
The field name to become the new root
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $replaceWith aggregation stage.
The $replaceWith aggregation stage.
Attributes
- Since:
MongoDB 4.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$sample aggregation stage, that randomly selects the specified number of documents from its input.
$sample aggregation stage, that randomly selects the specified number of documents from its input.
Attributes
- size
the number of documents to return
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
'''EXPERIMENTAL:''' One or at least one string with optional alternate analyzer specified in multi field
'''EXPERIMENTAL:''' One or at least one string with optional alternate analyzer specified in multi field
Attributes
- Inherited from:
- AtlasSearchAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
'''EXPERIMENTAL:''' Search string utilities
'''EXPERIMENTAL:''' Search string utilities
Attributes
- See also:
- Inherited from:
- AtlasSearchAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$set aggregation stage
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$skips over a number of documents before passing all further documents along the stream.
$skips over a number of documents before passing all further documents along the stream.
Attributes
- skip
the number of documents to skip
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Returns a slice/subset of an array.
Returns a slice/subset of an array.
Attributes
- array
any valid expression that resolves to an array
- n
any valud expression that resolves to an integer
- position
any valid expression that resolves to an integer
- Inherited from:
- SliceAggregation (hidden)
- Graph
- Supertypes
import reactivemongo.api.bson.{ BSONDocument, BSONInteger, BSONString }
import reactivemongo.api.bson.collection.BSONCollection
def foo(coll: BSONCollection) =
coll.aggregateWith[BSONDocument]() { agg =>
import agg.{ Project, Slice }
// Define the pipeline stages
List(Project(BSONDocument(
"name" -> 1,
"favorites" -> Slice(
array = BSONString(f"$$favorites"),
n = BSONInteger(3)))))
}
Attributes
- Inherited from:
- SliceAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
$sorts the stream based on the given fields.
$sorts the stream based on the given fields.
Attributes
- fields
the fields to sort by
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $sortByCount aggregation stage.
The $sortByCount aggregation stage.
Attributes
- Since:
MongoDB 3.4
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $sortByCount aggregation stage.
The $sortByCount aggregation stage.
Attributes
- field
the field name
- Since:
MongoDB 3.4
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Represents that a field should be sorted on, as well as whether it should be ascending or descending.
Represents that a field should be sorted on, as well as whether it should be ascending or descending.
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
The $stdDevPop group accumulator.
The $stdDevPop group accumulator.
Attributes
- Since:
MongoDB 3.2
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $stdDevPop for a single field.
The $stdDevPop for a single field.
Attributes
- field
the name of field to group
- Since:
MongoDB 3.2
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $stdDevSamp group accumulator
The $stdDevSamp group accumulator
Attributes
- Since:
MongoDB 3.2
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $stdDevSamp for a single field
The $stdDevSamp for a single field
Attributes
- field
the name of field to group
- Since:
MongoDB 3.2
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $sum group accumulator.
The $sum group accumulator.
Attributes
- sumExpr
the
$sum
expression- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The `$sum: 1` group accumulator.
The `$sum: 1` group accumulator.
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait GroupFunctionclass Objecttrait Matchableclass Any
The $sum group accumulator.
The $sum group accumulator.
Attributes
- field
the name of field to group
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- GroupAggregation (hidden)
- Graph
- Supertypes
References the score associated with the corresponding `$text` query for each matching document.
References the score associated with the corresponding `$text` query for each matching document.
Attributes
- Inherited from:
- SortAggregation (hidden)
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MetadataKeywordclass Objecttrait Matchableclass Any
$unionWith stage
$unionWith stage
Attributes
- collection
the name of the collection
- pipeline
the union pipeline
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
$unionWith stage
$unionWith stage
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
The $unset aggregation stage.
The $unset aggregation stage.
Attributes
- field
the field name
- Since:
MongoDB 4.2
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- Known subtypes
- class UnwindField
Turns a document with an array into multiple documents, one document for each element in the array. http://docs.mongodb.org/manual/reference/aggregation/unwind/#_S_unwind
Turns a document with an array into multiple documents, one document for each element in the array. http://docs.mongodb.org/manual/reference/aggregation/unwind/#_S_unwind
Attributes
- field
the name of the array to unwind
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
Attributes
- Inherited from:
- AggregationFramework
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Inherited types
Aggregation pipeline (with at least one stage operator)
Aggregation pipeline (with at least one stage operator)
Attributes
- Inherited from:
- AggregationPipeline (hidden)
Value members
Inherited methods
Attributes
- Inherited from:
- AggregationFramework
Concrete fields
Inherited fields
Attributes
- Inherited from:
- AggregationFramework