[CSHARP-2076] Support expression trees for updates Created: 31/Oct/17  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Feature Request
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: David Golub Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: skunk
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It would be awesome if we could use expression trees to specify not just queries but also updates. For example, we might update set or increment fields as follows:

collection.UpdateOne(model => model.Id == id1, model => model.Name = newName);
collection.UpdateOne(model => model.Id == id2, model => model.Count++);


Generated at Wed Feb 07 21:41:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.