fix(mongodb): support aggregate options and parse errors

This commit is contained in:
onenewcode authored and GitHub committed 2026-07-17 16:57:38 +08:00
1 parent 782615586c
commit bb613b1712
25 files changed
+952 -486

No files matched your search

+2
View File
@@ -96,6 +96,7 @@ struct MongoAggregateDocumentsRequest {
collection: String,
pipeline_json: String,
max_rows: Option<usize>,
options_json: Option<String>,
}
#[derive(Deserialize)]
@@ -664,6 +665,7 @@ async fn handle_mongo_aggregate_documents_data(state: &Arc<AppState>, body: &str
&req.collection,
&req.pipeline_json,
req.max_rows,
req.options_json.as_deref(),
)
.await
{
+2
View File
@@ -203,6 +203,7 @@ pub async fn mongo_aggregate_documents(
collection: String,
pipeline_json: String,
max_rows: Option<usize>,
options_json: Option<String>,
execution_id: Option<String>,
) -> Result<MongoDocumentResult, String> {
let app = state.inner().clone();
@@ -216,6 +217,7 @@ pub async fn mongo_aggregate_documents(
&collection,
&pipeline_json,
max_rows,
options_json.as_deref(),
),
)
.await