diff --git a/packages/mongo/mongo_driver.js b/packages/mongo/mongo_driver.js index a77549d164..02dcb994cd 100644 --- a/packages/mongo/mongo_driver.js +++ b/packages/mongo/mongo_driver.js @@ -391,7 +391,7 @@ MongoConnection.prototype._insert = function (collection_name, document, safe: true, } ).then(({insertedId}) => { - callback(null, transformResult({ result : {modifiedCount : insertedId ? 1 : 0} }).numberAffected); + callback(null, insertedId); }).catch((e) => { callback(e, null) });