fix(mongodb): support array filters in updates
This commit is contained in:
15 files changed
+170
-14
No files matched your search
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user