[GODRIVER-2443] Make Distinct return a decodable struct "[]any" Created: 02/Jun/22  Updated: 08/Jan/24

Status: Blocked
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Task Priority: Unknown
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-1639 Add a "bson.RawArray" type to improve... Backlog
depends on GODRIVER-3049 Replace bsoncore.DocumentSequence wit... Closed
Documented
Related
related to GODRIVER-2444 Consider a DistinctCursor collection ... Backlog
is related to GODRIVER-2426 Distinct does not provide unmarshalli... Closed
Epic Link: Go Driver 2.0: Driver
Backwards Compatibility: Major Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

We should not Unmarshal the values returned in a "distinct" command here, and should instead provide a way for users to Unmarshal to their own custom data.

Definition of done:


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