Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • SHLean = unknown

Hierarchy

  • Schema

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

schema

schema: SchemaFull<SHLean>

Methods

validate

  • validate(doc: unknown, opts?: SchemaValidationOpts): validTot<SHLean>
  • validate an object to make sure the document provided is a valid one. This also adds the default values

    Note: this does not throw MongoSteelValidityError!

    Parameters

    • doc: unknown
    • opts: SchemaValidationOpts = {}

    Returns validTot<SHLean>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static method

Generated using TypeDoc