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
@@ -154,6 +154,7 @@ pub struct MongoUpdateDocumentsRequest {
pub filter_json: String,
pub update_json: String,
pub many: bool,
pub options_json: Option<String>,
}
#[derive(Deserialize)]
@@ -439,6 +440,7 @@ pub async fn update_documents(
&req.filter_json,
&req.update_json,
req.many,
req.options_json.as_deref(),
)
.await
.map_err(AppError)?;