[GODRIVER-335] Split options.OptProjection into OptFields and OptProjection Created: 04/Apr/18 Updated: 28/Oct/23 Resolved: 29/Jun/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Options & Configuration |
| Affects Version/s: | 0.0.2 |
| Fix Version/s: | 0.0.9 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Roland Fong |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Epic Link: | Options Management | ||||||||||||
| Description |
|
The options.OptProject type is awkward to use because it has to satisfy both find and findAndModify which use two different key names for the same concept, findAndModify using fields and find using projection. Update the options package to have an OptProjection and an OptFields so we do not require this awkward logic to switch between them. |
| Comments |
| Comment by Githook User [ 29/Jun/18 ] |
|
Author: {'username': 'skriptble', 'name': 'Kris Brandow', 'email': 'kris@mongodb.com'}Message: Merge branch 'pr/74'
Change-Id: I713dc0fba4bbdee2445349262ea653d101e1299c |
| Comment by Roland Fong [ 25/Jun/18 ] |
|
https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/416007 |