[GODRIVER-749] Add support for findAndModify Created: 05/Jan/19 Updated: 27/Oct/23 Resolved: 14/Jan/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | ÖZGÜR YALÇIN | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Please add support for collection.findAndModify to Only findOneAndUpdate, findOneAndDelete, findOneAndReplace functions are available.. |
| Comments |
| Comment by Kristofer Brandow (Inactive) [ 14/Jan/19 ] |
|
Hi ozquryalcin, The CRUD API for drivers does not directly expose findAndModify, you can either use the aforementioned methods or use mongo.Database.RunCommand if you need to call findAndModify directly. Thanks, Kris |