SchemaOptions: { level?: ValidationLevel; message?: string; rule: any }

Options for validating collection documents.

Type declaration

  • Optional level?: ValidationLevel

    When validation should be applied.

    Default: "strict"

  • Optional message?: string

    Message to be used if validation fails.

  • rule: any

    JSON Schema description of the validation schema for documents.

Generated using TypeDoc