You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {Number} insertedCount The total amount of documents inserted.
706
+
* @property {object[]} ops All the documents inserted using insertOne/insertMany/replaceOne. Documents contain the _id field if forceServerObjectId == false for insertOne/insertMany
707
+
* @property {ObjectId} insertedId The driver generated ObjectId for the insert operation.
708
+
* @property {object} connection The connection object used for the operation.
709
+
* @property {object} result The raw command result object returned from MongoDB (content might vary by server version).
710
+
* @property {Number} result.ok Is 1 if the command executed correctly.
711
+
* @property {Number} result.n The total count of documents inserted.
712
+
*/
713
+
703
714
/**
704
715
* The callback format for inserts
705
716
* @callback Collection~insertWriteOpCallback
706
717
* @param {MongoError} error An error instance representing the error during the execution.
707
718
* @param {Collection~insertWriteOpResult} result The result object if the command was executed successfully.
708
719
*/
709
720
721
+
/**
722
+
* The callback format for inserts
723
+
* @callback Collection~insertOneWriteOpCallback
724
+
* @param {MongoError} error An error instance representing the error during the execution.
725
+
* @param {Collection~insertOneWriteOpResult} result The result object if the command was executed successfully.
726
+
*/
727
+
710
728
/**
711
729
* Inserts a single document or a an array of documents into MongoDB.
0 commit comments