Packages

final class ChangeStream extends PipelineOperator

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

Since

MongoDB 3.6

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChangeStream
  2. PipelineOperator
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ChangeStream(resumeAfter: Option[P.Value] = None, startAtOperationTime: Option[P.Value] = None, fullDocumentStrategy: Option[FullDocumentStrategy] = None)

    resumeAfter

    the id of the last known change event, if any. The stream will resume just after that event.

    startAtOperationTime

    the operation time before which all change events are known. Must be in the time range of the oplog. (since MongoDB 4.0)

    fullDocumentStrategy

    if set to UpdateLookup, every update change event will be joined with the current version of the relevant document.

Value Members

  1. def makePipe: P.Document
    Definition Classes
    ChangeStream → PipelineOperator