-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 0.9.0-alpha
-
Component/s: None
Hello,
I have the following code
let coll = conn.collection("collection"); let filter = doc! { "_id": id }; let update = doc! { "$set": {"meta": meta_data, "players": players } }; match coll.find_one_and_update(filter, update, None) { Ok(_result) => (), Err(e) => println!("Mongodb error: {:?}", e), } ===> Mongodb error: Error { kind: CommandError(CommandError { code: 9, code_name: "FailedToParse", message: "Either an update or remove=true must be specified", labels: [] }) }
It seems like it fails to pass the update property to findAndModify? Or am i doing something incorrect? Worked on the previous prototype driver.
- is duplicated by
-
RUST-292 FindOneAndDelete command
- Closed