#373 fixed mongodb export

This commit is contained in:
Jan Prochazka
2022-09-17 09:25:12 +02:00
parent 66f30ff26e
commit 9aded740ca
2 changed files with 6 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ const driver = {
exprValue = func(db, ObjectId);
// return directly stream without header row
return exprValue;
return exprValue.stream();
// pass.write(structure || { __isDynamicStructure: true });
// exprValue.on('data', (row) => pass.write(row));
@@ -331,7 +331,8 @@ const driver = {
const res = db
.collection(collection)
.find(condition || {})
.sort(sort || {});
.sort(sort || {})
.stream();
return res;
},