fix(mongodb): support shell projection and db.version

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-06-29 00:27:27 +08:00
1 parent 44011cb9a4
commit 7a5984a1fd
24 files changed
+390 -38

No files matched your search

@@ -396,7 +396,7 @@ async function load() {
try {
const filter = currentDocumentFilter();
const sort = sortInput.value.trim() || undefined;
const result = await api.documentFindDocuments(props.connectionId, props.database, props.collection, page.value * pageSize.value, pageSize.value, filter, sort, executionId);
const result = await api.documentFindDocuments(props.connectionId, props.database, props.collection, page.value * pageSize.value, pageSize.value, filter, undefined, sort, executionId);
if (documentLoadExecutionId.value !== executionId) return;
const nextDocuments = result.documents.map(asRecord);
documents.value = nextDocuments;