-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
softprops has created PR #2364: GODRIVER-3862: Collection.Clone propegates BSONOptions in mongo-go-driver
Issue Text:
GODRIVER-3862
It's not uncommon to clone a collection to set different read preference on a read path or write preference on a write path. In my cause I was storing and reading a third party struct which has json struct tags but no bson tags. I found the drivers BSONOptions.UseJSONStructTags worked up until I cloned a collection.
The issue is that the driver does not copy this setting when Cloning collections and additionally ignores it when passed as an option to collection.Clone. This pull addresses both issues
- duplicates
-
GODRIVER-3862 Collection.Clone doesn't copy BSONOptions
-
- Closed
-