[GODRIVER-2444] Consider a DistinctCursor collection method Created: 02/Jun/22 Updated: 13/Jun/22 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Unknown |
| Reporter: | Benji Rewis (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
It is odd that we Unmarshal the results of the "distinct" command here. While we cannot make significant changes to the Distinct method until v2.x of the driver (see GODRIVER-2443), we could create a new method DistinctCursor that returns a Cursor that would iterate over the "values" field returned by "distinct". |