Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BulkOperation

Contains all data needed for one operation of a bulk write operation.

Hierarchy

  • BulkOperation

Index

Constructors

constructor

Methods

getCollation

  • Returns CollationOptions

getDocument

  • getDocument(): {}
  • Sets the document, used by insert, replace, and update operations

    Returns {}

    • [key: string]: any

getFilter

  • getFilter(): {}
  • Sets the filter document, used by replace, update, and delete operations

    Returns {}

    • [key: string]: any

getHint

  • getHint(): {}
  • Sets the operation hint

    Returns {}

    • [key: string]: any

getHintString

  • getHintString(): string
  • Sets the operation hint string

    Returns string

getType

  • Sets the operation type

    Returns BulkOperationType

isMulti

  • isMulti(): boolean
  • Sets the multi flag, used by update and delete operations

    Returns boolean

isUpsert

  • isUpsert(): boolean
  • Sets the upsert flag, used by update and replace operations

    Returns boolean

setCollation

setDocument

  • Sets the document, used by insert, replace, and update operations

    Parameters

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

    Returns BulkOperation

setFilter

  • Sets the filter document, used by replace, update, and delete operations

    Parameters

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

    Returns BulkOperation

setHint

  • Sets the operation hint

    Parameters

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

    Returns BulkOperation

setHintString

  • Sets the operation hint string

    Parameters

    • hintString: string

    Returns BulkOperation

setMulti

  • Sets the multi flag, used by update and delete operations

    Parameters

    • multi: boolean

    Returns BulkOperation

setType

setUpsert

  • Sets the upsert flag, used by update and replace operations

    Parameters

    • upsert: boolean

    Returns BulkOperation

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc