mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 12:06:00 +00:00
feat: update mongo getCollectionExportQueryScript
This commit is contained in:
@@ -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) || {})})`;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user