This commit is contained in:
Mel O'Hagan 2022-10-12 18:55:22 +01:00
parent 98871064a9
commit cd5930450e
1 changed files with 3 additions and 1 deletions

View File

@ -571,7 +571,9 @@ class MongoIntegration implements IntegrationBase {
}
} else {
const stages: Array<any> = query.json as Array<any>
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)
}
}