diff --git a/packages/server/src/integrations/mongodb.ts b/packages/server/src/integrations/mongodb.ts index 70419be58b..f602b78093 100644 --- a/packages/server/src/integrations/mongodb.ts +++ b/packages/server/src/integrations/mongodb.ts @@ -571,7 +571,9 @@ class MongoIntegration implements IntegrationBase { } } else { const stages: Array = query.json as Array - for await (const doc of collection.aggregate(stages ? this.createObjectIds(stages) : [])) { + for await (const doc of collection.aggregate( + stages ? this.createObjectIds(stages) : [] + )) { response.push(doc) } }