feat: update mongo getCollectionExportQueryScript

This commit is contained in:
Pavel
2025-07-24 20:55:24 +02:00
parent 9f85b6154d
commit 06a3ce7486

View File

@@ -128,7 +128,7 @@ const driver = {
}, },
getCollectionExportQueryScript(collection, condition, sort) { getCollectionExportQueryScript(collection, condition, sort) {
return `db.collection('${collection}') return `db.${collection}
.find(${JSON.stringify(convertToMongoCondition(condition) || {})}) .find(${JSON.stringify(convertToMongoCondition(condition) || {})})
.sort(${JSON.stringify(convertToMongoSort(sort) || {})})`; .sort(${JSON.stringify(convertToMongoSort(sort) || {})})`;
}, },