[GODRIVER-262] Prevent "limit" from being specified on FindOne Created: 23/Feb/18  Updated: 28/Oct/23  Resolved: 01/Mar/18

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

Type: Bug Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, collection.FindOne takes the same options as collection.Find, which means that a user can specify the Limit option on a FindOne operation. We should rectify this by making a separate FindOneOptioner type.



 Comments   
Comment by Githook User [ 28/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-262 Prevent "limit" from being specified on FindOne

Change-Id: I32960514ef4ec94ff6127766555dfe7c3003704f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/b0cd0b45e8d0143b959bbd2c7282a5005d782bac

Comment by Samuel Rossi (Inactive) [ 23/Feb/18 ]

Code review url: https://review.gerrithub.io/c/401265/

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