Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdateOptions

Options for configuring updates.

Hierarchy

  • UpdateOptions

Index

Constructors

constructor

  • Returns UpdateOptions

  • Parameters

    Returns UpdateOptions

Methods

getArrayFilters

  • getArrayFilters(): any[]
  • Set the arrayFilters option

    Returns any[]

getCollation

  • Collation options

    Returns CollationOptions

getHint

  • getHint(): {}
  • Set the hint.

    Returns {}

    • [key: string]: any

getHintString

  • getHintString(): string
  • Set the hint string.

    Returns string

getWriteOption

  • Set the write option

    Returns WriteOption

isMulti

  • isMulti(): boolean
  • Set whether multi is enabled

    Returns boolean

isReturningNewDocument

  • isReturningNewDocument(): boolean
  • Set whether new document property is enabled. Valid only on findOneAnd* methods.

    Returns boolean

isUpsert

  • isUpsert(): boolean
  • Set whether upsert is enabled

    Returns boolean

setArrayFilters

  • Set the arrayFilters option

    Parameters

    • arrayFilters: any[]

    Returns UpdateOptions

setCollation

  • Collation options

    Parameters

    Returns UpdateOptions

setHint

  • Set the hint.

    Parameters

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

    Returns UpdateOptions

setHintString

  • Set the hint string.

    Parameters

    • hintString: string

    Returns UpdateOptions

setMulti

  • Set whether multi is enabled

    Parameters

    • multi: boolean

    Returns UpdateOptions

setReturningNewDocument

  • setReturningNewDocument(returningNewDocument: boolean): UpdateOptions
  • Set whether new document property is enabled. Valid only on findOneAnd* methods.

    Parameters

    • returningNewDocument: boolean

    Returns UpdateOptions

setUpsert

  • Set whether upsert is enabled

    Parameters

    • upsert: boolean

    Returns UpdateOptions

setWriteOption

  • Set the write option

    Parameters

    Returns UpdateOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc