Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InsertOneWriteOpResult

Hierarchy

  • InsertOneWriteOpResult

Index

Properties

connection

connection: any

The connection object used for the operation.

insertedCount

insertedCount: number

The total amount of documents inserted.

insertedId

insertedId: ObjectID

The driver generated ObjectId for the insert operation.

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