diff --git a/packages/server/src/integrations/mongodb.ts b/packages/server/src/integrations/mongodb.ts index 168b58e589..d50b8f4320 100644 --- a/packages/server/src/integrations/mongodb.ts +++ b/packages/server/src/integrations/mongodb.ts @@ -518,7 +518,10 @@ class MongoIntegration implements IntegrationBase { return await collection.findOneAndUpdate( findAndUpdateJson.filter, findAndUpdateJson.update, - findAndUpdateJson.options + { + ...findAndUpdateJson.options, + includeResultMetadata: true, + } ) } case "count": {