Fix mongo findOneAndUpdate

This commit is contained in:
Adria Navarro 2024-02-07 13:37:06 +01:00
parent e2a1d8c880
commit 456edfa7b4
1 changed files with 4 additions and 1 deletions

View File

@ -518,7 +518,10 @@ class MongoIntegration implements IntegrationBase {
return await collection.findOneAndUpdate(
findAndUpdateJson.filter,
findAndUpdateJson.update,
findAndUpdateJson.options
{
...findAndUpdateJson.options,
includeResultMetadata: true,
}
)
}
case "count": {