Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValidationOptions

Hierarchy

  • ValidationOptions

Index

Constructors

constructor

Methods

getValidationAction

  • getValidationAction(): any
  • Optional. Determines whether to error on invalid documents or just warn about the violations but allow invalid documents to be inserted.

    Returns any

getValidationLevel

  • getValidationLevel(): any
  • Optional. Determines how strictly MongoDB applies the validation rules to existing documents during an update.

    Returns any

getValidator

  • getValidator(): {}
  • Optional. Allows users to specify validation rules or expressions for the collection. For more information, see Schema Validation.

    Returns {}

    • [key: string]: any

setValidationAction

  • Optional. Determines whether to error on invalid documents or just warn about the violations but allow invalid documents to be inserted.

    Parameters

    • validationAction: any

    Returns ValidationOptions

setValidationLevel

  • Optional. Determines how strictly MongoDB applies the validation rules to existing documents during an update.

    Parameters

    • validationLevel: any

    Returns ValidationOptions

setValidator

  • Optional. Allows users to specify validation rules or expressions for the collection. For more information, see Schema Validation.

    Parameters

    • validator: {}
      • [key: string]: any

    Returns ValidationOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc