This commit is contained in:
Mel O'Hagan 2022-10-12 18:55:22 +01:00
parent 436cbed74b
commit 10e6c61081
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)
}
}