fix(mongodb): display array structures as shell-style bson literals
This commit is contained in:
1 parent
27078b8eed
commit
cf78eebbc9
8 files changed
+223
-34
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user