Context
Follow-up from https://github.com/mongodb/mongo-go-driver/pull/1603.
Currently (on the master branch) a DistinctResult does not use the BSONOptions specified on a Collection when unmarshaling results. We should update it to use the specified BSONOptions.
Depends on GODRIVER-1808 (https://github.com/mongodb/mongo-go-driver/pull/1584)
Definition of done
- Update DistinctResult.Decode to use a bson.Decoder configured with BSONOptions to decode the results.
Pitfalls
- depends on
-
GODRIVER-1808 Unmarshaling BSON into a struct with interface fields containing concrete value types doesn't work as expected.
- Closed