[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
github.com/mongodb/mongo-go-driver.

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

Generated at Thu Feb 08 08:34:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.