[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:
Depends
depends on GODRIVER-444 Design : Options Management Closed
depends on GODRIVER-272 Implement redesigned options for the ... Closed
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'

GODRIVER-157
GODRIVER-272
GODRIVER-335
GODRIVER-356
GODRIVER-350
GODRIVER-450

Change-Id: I713dc0fba4bbdee2445349262ea653d101e1299c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5fea1444e52844a15513c0d9490327b2bd89ed7c

Comment by Roland Fong [ 25/Jun/18 ]

https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/416007

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