feat: update to mongodb 6.1 (#12087)

This commit is contained in:
Barış Soner Uşaklı
2023-10-15 13:38:57 -04:00
committed by GitHub
parent 212a341575
commit e542b27d1d
7 changed files with 10 additions and 6 deletions

View File

@@ -435,6 +435,7 @@ module.exports = function (module) {
$inc: data,
}, {
returnDocument: 'after',
includeResultMetadata: true,
upsert: true,
});
return result && result.value ? result.value.score : null;