Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InsertWriteOpResult

Hierarchy

  • InsertWriteOpResult

Index

Properties

connection

connection: any

The connection object used for the operation.

insertedCount

insertedCount: number

The total amount of documents inserted.

insertedIds

insertedIds: Array<ObjectID>

All the generated _id's for the inserted documents.

ops

ops: Array<any>

All the documents inserted using insertOne/insertMany/replaceOne. Documents contain the _id field if forceServerObjectId == false for insertOne/insertMany.

result

result: object

The raw command result object returned from MongoDB (content might vary by server version).

param

Is 1 if the command executed correctly.

param

The total count of documents inserted.

Type declaration

  • n: number
  • ok: number

Generated using TypeDoc