Packages

o

org.mongodb.scala.model.changestream

FullDocumentBeforeChange

object FullDocumentBeforeChange

Change Stream fullDocumentBeforeChange configuration.

Determines what to return for update operations when using a Change Stream. Defaults to FullDocumentBeforeChange#DEFAULT.

Since

4.7

Note

Requires MongoDB 6.0 or greater

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FullDocumentBeforeChange
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val DEFAULT: com.mongodb.client.model.changestream.FullDocumentBeforeChange

    The default value

  2. val OFF: com.mongodb.client.model.changestream.FullDocumentBeforeChange

    Configures the change stream to not include the pre-image of the modified document.

  3. val REQUIRED: com.mongodb.client.model.changestream.FullDocumentBeforeChange

    The same behavior as WHEN_AVAILABLE except that an error is raised if the pre-image is not available.

  4. val WHEN_AVAILABLE: com.mongodb.client.model.changestream.FullDocumentBeforeChange

    Configures the change stream to return the pre-image of the modified document for replace, update, and delete change events if it is available.

  5. def fromString(fullDocumentBeforeChange: String): Try[com.mongodb.client.model.changestream.FullDocumentBeforeChange]

    Returns the FullDocumentBeforeChange from the string value.

    Returns the FullDocumentBeforeChange from the string value.

    fullDocumentBeforeChange

    the string value.

    returns

    the FullDocumentBeforeChange value