fix(mongodb): display array structures as shell-style bson literals

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-29 12:22:42 +08:00
1 parent 27078b8eed
commit cf78eebbc9
8 files changed
+223 -34

No files matched your search

+3 -1
View File
@@ -9118,7 +9118,9 @@ export const useQueryStore = defineStore("query", () => {
if (pageDocuments.length === 0 || pageDocuments.length < plan.requestLimit || reachedLogicalLimit || reachedExactTotal) break;
}
const result = mongoDocumentsToQueryResult(documents, performance.now() - exportStartedAt, totalRows ?? documents.length, copyDocuments, totalRows !== null);
// Full exports return source rows (CSV/SQL text), not the live grid's
// BSON-faithful cell encoding.
const result = mongoDocumentsToQueryResult(documents, performance.now() - exportStartedAt, totalRows ?? documents.length, copyDocuments, totalRows !== null, { documentGridValues: false });
if (result.columns.length === 0) {
result.columns = tab.result.columns;
result.column_types = tab.result.column_types;