fix(mongodb): support array filters in updates

This commit is contained in:
zipg authored and GitHub committed 2026-07-12 23:13:36 +08:00
1 parent 0e779f9edc
commit 9a09bd49cb
15 files changed
+170 -14

No files matched your search

+2
View File
@@ -263,6 +263,7 @@ pub async fn mongo_update_documents(
filter_json: String,
update_json: String,
many: bool,
options_json: Option<String>,
) -> Result<u64, String> {
ensure_connection_writable(&state, &connection_id, "Update").await?;
dbx_core::mongo_ops::mongo_update_documents_core(
@@ -273,6 +274,7 @@ pub async fn mongo_update_documents(
&filter_json,
&update_json,
many,
options_json.as_deref(),
)
.await
}