[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: Change-Id: I32960514ef4ec94ff6127766555dfe7c3003704f |
| Comment by Samuel Rossi (Inactive) [ 23/Feb/18 ] |
|
Code review url: https://review.gerrithub.io/c/401265/ |