Object

reactivemongo.api.commands.bson

BSONAggregationFramework

Related Doc: package bson

Permalink

object BSONAggregationFramework extends AggregationFramework[BSONSerializationPack.type]

Annotations
@deprecated
Deprecated

(Since version 0.16.0) Internal: will be made private

Linear Supertypes
AggregationFramework[BSONSerializationPack.type], AggregationPipeline[BSONSerializationPack.type], SortAggregation[BSONSerializationPack.type], SliceAggregation[BSONSerializationPack.type], GroupAggregation[BSONSerializationPack.type], ImplicitCommandHelpers[BSONSerializationPack.type], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONAggregationFramework
  2. AggregationFramework
  3. AggregationPipeline
  4. SortAggregation
  5. SliceAggregation
  6. GroupAggregation
  7. ImplicitCommandHelpers
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AddFieldToSet extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $addToSet group accumulator.

    The $addToSet group accumulator.

    Definition Classes
    GroupAggregation
  2. class AddFields extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    $addFields stage.

    $addFields stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  3. class AddToSet extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $addToSet group accumulator.

    The $addToSet group accumulator.

    Definition Classes
    GroupAggregation
  4. class Ascending extends AggregationFramework.SortOrder with Product1[String] with Serializable

    Permalink

    Ascending sort order

    Ascending sort order

    Definition Classes
    SortAggregation
  5. class Avg extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $avg group accumulator.

    The $avg group accumulator.

    Definition Classes
    GroupAggregation
  6. class AvgField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $avg group accumulator.

    The $avg group accumulator.

    Definition Classes
    GroupAggregation
  7. class Bucket extends PipelineOperator with Product4[P.Value, Seq[P.Value], String, Seq[(String, GroupFunction)]]

    Permalink

    $bucket aggregation stage.

    $bucket aggregation stage.

    Definition Classes
    AggregationFramework
  8. class BucketAuto extends PipelineOperator with Product4[P.Value, Int, Option[String], Seq[(String, GroupFunction)]] with Serializable

    Permalink

    $bucket aggregation stage.

    $bucket aggregation stage.

    Definition Classes
    AggregationFramework
    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 $.

  9. final class ChangeStream extends PipelineOperator

    Permalink

    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).

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  10. class CollStats extends PipelineOperator with Product3[Boolean, Option[Double], Boolean] with Serializable

    Permalink

    $collStats aggregation stage.

    $collStats aggregation stage.

    Definition Classes
    AggregationFramework
  11. class Count extends PipelineOperator with Product1[String] with Serializable

    Permalink

    $count of the number of documents input.

    $count of the number of documents input.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  12. class CurrentOp extends PipelineOperator with Product5[Boolean, Boolean, Boolean, Boolean, Boolean]

    Permalink

    $currentOp.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  13. class Descending extends AggregationFramework.SortOrder with Product1[String] with Serializable

    Permalink

    Descending sort order

    Descending sort order

    Definition Classes
    SortAggregation
  14. class Facet extends PipelineOperator with Product1[Iterable[(String, Pipeline)]] with Serializable

    Permalink

    Processes multiple aggregation pipelines within a single stage on the same set of input documents.

    Processes 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.

    Definition Classes
    AggregationFramework
    See also

    https://docs.mongodb.com/manual/reference/operator/aggregation/facet/

  15. class First extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  16. class FirstField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  17. class GeoNear extends PipelineOperator with Product with Serializable

    Permalink

    $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.

    Definition Classes
    AggregationFramework
  18. class GraphLookup extends PipelineOperator with Product8[String, P.Value, String, String, String, Option[Int], Option[String], Option[P.Value]] with Serializable

    Permalink

    The $graphLookup aggregation stage.

    The $graphLookup aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  19. class Group extends PipelineOperator with Product2[P.Value, Seq[(String, GroupFunction)]] with Serializable

    Permalink

    $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 $.

    Definition Classes
    AggregationFramework
  20. class GroupField extends PipelineOperator with Product2[String, Seq[(String, GroupFunction)]] with Serializable

    Permalink

    $groups documents together to calculate aggregates on document collections.

    $groups documents together to calculate aggregates on document collections. This command aggregates on one field.

    Definition Classes
    AggregationFramework
  21. sealed trait GroupFunction extends AnyRef

    Permalink

    Represents one of the group/accumulator operators, for the $group aggregation.

    Represents one of the group/accumulator operators, for the $group aggregation. Operation.

    Definition Classes
    GroupAggregation
    See also

    https://docs.mongodb.com/manual/reference/operator/aggregation/group/#accumulator-operator

  22. class GroupMulti extends PipelineOperator with Product2[Seq[(String, String)], Seq[(String, GroupFunction)]] with Serializable

    Permalink

    $groups documents together to calculate aggregates on document collections.

    $groups documents together to calculate aggregates on document collections. This command aggregates on multiple fields, and they must be named.

    Definition Classes
    AggregationFramework
  23. trait ImplicitlyDocumentProducer extends AnyRef

    Permalink
    Definition Classes
    ImplicitCommandHelpers
  24. class IndexStatAccesses extends Product2[Long, Long] with Serializable

    Permalink

    Definition Classes
    AggregationFramework
  25. class IndexStatsResult extends Product4[String, P.Document, String, IndexStatAccesses] with Serializable

    Permalink

    Definition Classes
    AggregationFramework
  26. class Last extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  27. class LastField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $field group accumulator.

    The $field group accumulator.

    Definition Classes
    GroupAggregation
  28. class Limit extends PipelineOperator with Product1[Int] with Serializable

    Permalink

    $limits the number of documents that pass through the stream.

    $limits the number of documents that pass through the stream.

    Definition Classes
    AggregationFramework
  29. class ListLocalSessions extends PipelineOperator

    Permalink

    $listLocalSessions aggregation stage.

    $listLocalSessions aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  30. class ListSessions extends PipelineOperator

    Permalink

    $listSessions aggregation stage.

    $listSessions aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.6

  31. class Lookup extends PipelineOperator with Product4[String, String, String, String] with Serializable

    Permalink

    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.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.2

  32. class Match extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    Filters out documents from the stream that do not match the predicate.

    Filters out documents from the stream that do not match the predicate.

    Definition Classes
    AggregationFramework
  33. class Max extends AggregationFramework.GroupFunction

    Permalink

    The $max group accumulator.

    The $max group accumulator.

    Definition Classes
    GroupAggregation
  34. class MaxField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $max group accumulator.

    The $max group accumulator.

    Definition Classes
    GroupAggregation
  35. class Merge extends PipelineOperator with Product6[String, String, Seq[String], Option[String], Option[P.Document], Option[String]] with Serializable

    Permalink

    $merge aggregation stage.

    $merge aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  36. class MergeObjects extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $mergeObjects group accumulator.

    The $mergeObjects group accumulator.

    Definition Classes
    GroupAggregation
  37. sealed trait MetadataKeyword extends AnyRef

    Permalink

    Keyword of metadata.

    Definition Classes
    SortAggregation
  38. class MetadataSort extends AggregationFramework.SortOrder with Product2[String, AggregationFramework.MetadataKeyword] with Serializable

    Permalink

    Metadata sort order.

    Definition Classes
    SortAggregation
  39. class Min extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $min group accumulator.

    The $min group accumulator.

    Definition Classes
    GroupAggregation
  40. class MinField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $min group accumulator.

    The $min group accumulator.

    Definition Classes
    GroupAggregation
  41. class Out extends PipelineOperator with Product1[String] with Serializable

    Permalink

    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

    Definition Classes
    AggregationFramework
  42. type Pipeline = (PipelineOperator, List[PipelineOperator])

    Permalink

    Aggregation pipeline (with at least one stage operator)

    Aggregation pipeline (with at least one stage operator)

    Definition Classes
    AggregationPipeline
  43. trait PipelineOperator extends AnyRef

    Permalink

    One of MongoDBs pipeline operators for aggregation.

    One of MongoDBs pipeline operators for aggregation. Sealed as these are defined in the MongoDB specifications, and clients should not have custom operators.

    Definition Classes
    AggregationPipeline
  44. class Project extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    Reshapes a document stream by renaming, adding, or removing fields.

    Reshapes a document stream by renaming, adding, or removing fields. Also uses Project to create computed values or sub-objects.

    Definition Classes
    AggregationFramework
  45. class Push extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $push group accumulator.

    The $push group accumulator.

    Definition Classes
    GroupAggregation
  46. class PushField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $push group accumulator.

    The $push group accumulator.

    Definition Classes
    GroupAggregation
  47. class Redact extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    Restricts the contents of the documents based on information stored in the documents themselves.

    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

    Definition Classes
    AggregationFramework
  48. class ReplaceRoot extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    Promotes a specified document to the top level and replaces all other fields.

    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

    Definition Classes
    AggregationFramework
  49. class ReplaceRootField extends PipelineOperator with Product1[String] with Serializable

    Permalink

    Promotes a specified document to the top level and replaces all other fields.

    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

    Definition Classes
    AggregationFramework
  50. class ReplaceWith extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    The $replaceWith aggregation stage.

    The $replaceWith aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  51. class Sample extends PipelineOperator with Product1[Int] with Serializable

    Permalink

    $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.

    Definition Classes
    AggregationFramework
  52. class Set extends PipelineOperator with Product1[P.Document] with Serializable

    Permalink

    $set aggregation stage

    $set aggregation stage

    Definition Classes
    AggregationFramework
  53. class Skip extends PipelineOperator with Product1[Int] with Serializable

    Permalink

    $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.

    Definition Classes
    AggregationFramework
  54. final class Slice extends AggregationFramework.PipelineOperator

    Permalink

    Returns a subset of an array.

    Returns a subset of an array. https://docs.mongodb.com/manual/reference/operator/aggregation/slice/

    Definition Classes
    SliceAggregation
  55. class Sort extends PipelineOperator with Product1[Seq[SortOrder]] with Serializable

    Permalink

    $sorts the stream based on the given fields.

    $sorts the stream based on the given fields.

    Definition Classes
    AggregationFramework
  56. class SortByCount extends PipelineOperator with Product1[P.Value] with Serializable

    Permalink

    The $sortByCount aggregation stage.

    The $sortByCount aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  57. class SortByFieldCount extends PipelineOperator with Product1[String] with Serializable

    Permalink

    The $sortByCount aggregation stage.

    The $sortByCount aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.4

  58. sealed trait SortOrder extends AnyRef

    Permalink

    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.

    Definition Classes
    SortAggregation
  59. class StdDevPop extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $stdDevPop group accumulator.

    The $stdDevPop group accumulator.

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  60. class StdDevPopField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $stdDevPop for a single field.

    The $stdDevPop for a single field.

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  61. class StdDevSamp extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $stdDevSamp group accumulator

    The $stdDevSamp group accumulator

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  62. class StdDevSampField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $stdDevSamp for a single field

    The $stdDevSamp for a single field

    Definition Classes
    GroupAggregation
    Since

    MongoDB 3.2

  63. class Sum extends AggregationFramework.GroupFunction with Product1[GroupAggregation.P.Value] with Serializable

    Permalink

    The $sum group accumulator.

    The $sum group accumulator.

    Definition Classes
    GroupAggregation
  64. class SumField extends AggregationFramework.GroupFunction with Product1[String] with Serializable

    Permalink

    The $sum group accumulator.

    The $sum group accumulator.

    Definition Classes
    GroupAggregation
  65. class Unset extends PipelineOperator with Product2[String, Seq[String]] with Serializable

    Permalink

    The $unset aggregation stage.

    The $unset aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  66. class Unwind extends PipelineOperator with Product with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  67. class UnwindField extends Unwind with Serializable

    Permalink

    Turns a document with an array into multiple documents, one document for each element in the array.

    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

    Definition Classes
    AggregationFramework
  68. case class Aggregate(pipeline: Seq[AggregationFramework.PipelineOperator], explain: Boolean = false, allowDiskUse: Boolean, cursor: Option[Cursor], wireVersion: MongoWireVersion, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern]) extends CollectionCommand with CommandWithPack[pack.type] with CommandWithResult[AggregationResult] with Product with Serializable

    Permalink

    pipeline

    the sequence of MongoDB aggregation operations

    explain

    specifies to return the information on the processing of the pipeline

    allowDiskUse

    enables writing to temporary files

    cursor

    the cursor object for aggregation

    bypassDocumentValidation

    available only if you specify the $out aggregation operator

    readConcern

    the read concern

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

    Since

    MongoDB 3.2

  69. case class AggregationResult(firstBatch: List[P.Document], cursor: Option[ResultCursor] = None) extends Product with Serializable

    Permalink

    firstBatch

    the documents of the first batch

    cursor

    the cursor from the result, if any

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

    See also

    Cursor

  70. class Cursor extends Product1[Int]

    Permalink

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Use api.collections.Aggregator

  71. case class Filter(input: P.Value, as: String, cond: P.Document) extends PipelineOperator with Product with Serializable

    Permalink

    The $filter aggregation stage.

    The $filter aggregation stage.

    input

    the expression that resolves to an array

    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

    Definition Classes
    AggregationFramework
    Annotations
    @deprecated
    Deprecated

    (Since version 0.19.4) Not a pipeline operator (stage)

  72. case class SumValue extends AggregationFramework.GroupFunction with Product with Serializable

    Permalink
    Definition Classes
    GroupAggregation
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use SumAll

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object AddFieldToSet extends AbstractFunction1[String, AggregationFramework.AddFieldToSet] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  5. object AddFields extends AbstractFunction1[P.Document, AddFields] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  6. object AddToSet extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.AddToSet] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  7. object Ascending extends AbstractFunction1[String, AggregationFramework.Ascending] with Serializable

    Permalink
    Definition Classes
    SortAggregation
  8. object Avg extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Avg] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  9. object AvgField extends AbstractFunction1[String, AggregationFramework.AvgField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  10. object Bucket

    Permalink
    Definition Classes
    AggregationFramework
  11. object BucketAuto extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  12. object CollStats extends AbstractFunction3[Boolean, Option[Double], Boolean, CollStats] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  13. object Count extends AbstractFunction1[String, Count] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  14. object CurrentOp extends AbstractFunction5[Boolean, Boolean, Boolean, Boolean, Boolean, CurrentOp]

    Permalink
    Definition Classes
    AggregationFramework
  15. object Cursor extends AbstractFunction1[Int, Cursor]

    Permalink
    Definition Classes
    AggregationFramework
  16. object Descending extends AbstractFunction1[String, AggregationFramework.Descending] with Serializable

    Permalink
    Definition Classes
    SortAggregation
  17. object Facet extends AbstractFunction1[Iterable[(String, Pipeline)], Facet] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  18. object Filter extends Serializable

    Permalink

    Filter companion

    Filter companion

    Definition Classes
    AggregationFramework
  19. object First extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.First] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  20. object FirstField extends AbstractFunction1[String, AggregationFramework.FirstField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  21. object GeoNear extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  22. object GraphLookup extends AbstractFunction8[String, P.Value, String, String, String, Option[Int], Option[String], Option[P.Value], GraphLookup] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  23. object Group extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  24. object GroupField extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  25. object GroupFunction

    Permalink

    Factory to declare custom call to a group function.

    Factory to declare custom call to a group function.

    Definition Classes
    GroupAggregation
  26. object GroupMulti extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  27. object ImplicitlyDocumentProducer

    Permalink
    Definition Classes
    ImplicitCommandHelpers
  28. object IndexStatAccesses extends AbstractFunction2[Long, Long, IndexStatAccesses] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  29. object IndexStats extends PipelineOperator with Product with Serializable

    Permalink

    $indexStats aggregation stage.

    $indexStats aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 3.2

  30. object IndexStatsResult extends AbstractFunction4[String, P.Document, String, IndexStatAccesses, IndexStatsResult] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  31. object Last extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Last] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  32. object LastField extends AbstractFunction1[String, AggregationFramework.LastField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  33. object Limit extends AbstractFunction1[Int, Limit] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  34. object ListLocalSessions extends AbstractFunction1[P.Document, ListLocalSessions]

    Permalink
    Definition Classes
    AggregationFramework
  35. object ListSessions extends AbstractFunction1[P.Document, ListSessions]

    Permalink
    Definition Classes
    AggregationFramework
  36. object Lookup extends AbstractFunction4[String, String, String, String, Lookup] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  37. object Match extends AbstractFunction1[P.Document, Match] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  38. object Max extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Max]

    Permalink
    Definition Classes
    GroupAggregation
  39. object MaxField extends AbstractFunction1[String, AggregationFramework.MaxField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  40. object Merge extends AbstractFunction6[String, String, Seq[String], Option[String], Option[P.Document], Option[String], Merge] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  41. object MergeObjects extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.MergeObjects] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  42. object MetadataSort extends AbstractFunction2[String, AggregationFramework.MetadataKeyword, AggregationFramework.MetadataSort] with Serializable

    Permalink
    Definition Classes
    SortAggregation
  43. object Min extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Min] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  44. object MinField extends AbstractFunction1[String, AggregationFramework.MinField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  45. object Out extends AbstractFunction1[String, Out] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  46. object PipelineOperator

    Permalink

    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 scala.concurrent.ExecutionContext
    
    import reactivemongo.api.bson.{ BSONDocument, BSONInteger, BSONString }
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection)(implicit ec: ExecutionContext) =
      coll.aggregateWith[BSONDocument]() { agg =>
        import agg.PipelineOperator
    
        val stage = PipelineOperator(BSONDocument(
          f"$$sample" -> BSONDocument("size" -> 2)))
    
        stage -> List.empty
      }
    Definition Classes
    AggregationPipeline
  47. object PlanCacheStats extends PipelineOperator with Product with Serializable

    Permalink

    $planCacheStats aggregation stage.

    $planCacheStats aggregation stage.

    Definition Classes
    AggregationFramework
    Since

    MongoDB 4.2

  48. object Project extends AbstractFunction1[P.Document, Project] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  49. object Push extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Push] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  50. object PushField extends AbstractFunction1[String, AggregationFramework.PushField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  51. object Redact extends AbstractFunction1[P.Document, Redact] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  52. object ReplaceRoot extends AbstractFunction1[P.Document, ReplaceRoot] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  53. object ReplaceRootField extends AbstractFunction1[String, ReplaceRootField] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  54. object ReplaceWith extends AbstractFunction1[P.Document, ReplaceWith] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  55. object Sample extends AbstractFunction1[Int, Sample] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  56. object Set extends AbstractFunction1[P.Document, Set] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  57. object Skip extends AbstractFunction1[Int, Skip] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  58. object Slice

    Permalink

    import scala.concurrent.ExecutionContext
    
    import reactivemongo.api.bson.{ BSONDocument, BSONInteger, BSONString }
    import reactivemongo.api.bson.collection.BSONCollection
    
    def foo(coll: BSONCollection)(implicit ec: ExecutionContext) = {
      coll.aggregateWith[BSONDocument]() { agg =>
        import agg.{ Project, Slice }
    
        // Define the pipeline stages
        Project(BSONDocument(
          "name" -> 1,
          "favorites" -> Slice(
            array = BSONString(f"$$favorites"),
            n = BSONInteger(3)).makePipe)) -> List.empty
      }
    }
    Definition Classes
    SliceAggregation
  59. object Sort extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  60. object SortByCount extends AbstractFunction1[P.Value, SortByCount] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  61. object SortByFieldCount extends AbstractFunction1[String, SortByFieldCount] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  62. object StdDevPop extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.StdDevPop] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  63. object StdDevPopField extends AbstractFunction1[String, AggregationFramework.StdDevPopField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  64. object StdDevSamp extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.StdDevSamp] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  65. object StdDevSampField extends AbstractFunction1[String, AggregationFramework.StdDevSampField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  66. object Sum extends AbstractFunction1[GroupAggregation.P.Value, AggregationFramework.Sum] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  67. object SumAll extends AggregationFramework.GroupFunction with Product with Serializable

    Permalink

    The $sum: 1 group accumulator.

    The $sum: 1 group accumulator.

    Definition Classes
    GroupAggregation
  68. object SumField extends AbstractFunction1[String, AggregationFramework.SumField] with Serializable

    Permalink
    Definition Classes
    GroupAggregation
  69. object TextScore extends AggregationFramework.MetadataKeyword with Product with Serializable

    Permalink

    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.

    Definition Classes
    SortAggregation
  70. object Unset extends AbstractFunction2[String, Seq[String], Unset] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  71. object Unwind extends Serializable

    Permalink
    Definition Classes
    AggregationFramework
  72. object UnwindField extends AbstractFunction1[String, UnwindField] with Serializable

    Permalink
    Definition Classes
    AggregationFramework
  73. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  74. final lazy val builder: Builder[pack.type]

    Permalink
    Attributes
    protected
    Definition Classes
    AggregationFramework
  75. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  77. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  78. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  79. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  80. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  81. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  82. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  83. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  84. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  85. val pack: BSONSerializationPack.type

    Permalink
    Definition Classes
    BSONAggregationFramework → AggregationPipeline → ImplicitCommandHelpers
  86. final def pipe(name: String, arg: Value): Document

    Permalink
    Attributes
    protected
    Definition Classes
    AggregationFramework
    Annotations
    @inline()
  87. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  88. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  89. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AggregationPipeline[BSONSerializationPack.type]

Inherited from SortAggregation[BSONSerializationPack.type]

Inherited from SliceAggregation[BSONSerializationPack.type]

Inherited from GroupAggregation[BSONSerializationPack.type]

Inherited from AnyRef

Inherited from Any

Ungrouped