An error that occurred during a BulkWrite on the server.

Hierarchy

  • WriteError

Constructors

Properties

Accessors

Methods

Constructors

Properties

Accessors

  • get code(): number
  • WriteError code.

    Returns number

  • get errmsg(): string
  • WriteError message.

    Returns string

  • get index(): number
  • WriteError original bulk operation index.

    Returns number

Methods

  • Returns {
        code: number;
        errmsg?: string;
        index: number;
        op: mongoose.mongo.BSON.Document;
    }

  • Returns string

Generated using TypeDoc