[GODRIVER-1775] Deprecate unnecessary FindOne options Created: 22/Oct/20  Updated: 11/Feb/21  Resolved: 08/Feb/21

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Benji Rewis (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Our FindOneOptions type allows specifying options like BatchSize and CursorType. These aren't valid for a FindOne operation because there is no cursor created, so they can be deprecated.



 Comments   
Comment by Kevin Albertson [ 11/Feb/21 ]

Cherry-picked onto release/1.5 with https://github.com/mongodb/mongo-go-driver/commit/4b2134de9df3cb9ecd41e69c5112ef805a9d5d69

Comment by Githook User [ 08/Feb/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1775 Deprecate unnecessary FindOne options (#573)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/0b1d3d4dc9ec6dea0b473c7fcd14dfcda17ee792

Comment by Benji Rewis (Inactive) [ 04/Feb/21 ]

https://github.com/mongodb/mongo-go-driver/pull/573

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