Packages

o

org.mongodb.scala.model

ValidationLevel

object ValidationLevel

Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

Since

1.1

Note

Requires MongoDB 3.2 or greater

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

Value Members

  1. val MODERATE: ValidationLevel

    Applies validation rules to inserts and to updates on existing valid documents.

    Applies validation rules to inserts and to updates on existing valid documents.

    Does not apply rules to updates on existing invalid documents.

  2. val OFF: ValidationLevel

    No validation for inserts or updates.

  3. val STRICT: ValidationLevel

    Apply validation rules to all inserts and all updates.

  4. def fromString(validationLevel: String): Try[ValidationLevel]

    Returns the ValidationLevel from the string representation of the validation level.

    Returns the ValidationLevel from the string representation of the validation level.

    validationLevel

    the string representation of the validation level.

    returns

    the validation level