We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3adad2b commit f5c8323Copy full SHA for f5c8323
mongo/options/collectionoptions.go
@@ -95,6 +95,9 @@ func MergeCollectionOptions(opts ...*CollectionOptions) *CollectionOptions {
95
if opt.Registry != nil {
96
c.Registry = opt.Registry
97
}
98
+ if opt.BSONOptions != nil {
99
+ c.BSONOptions = opt.BSONOptions
100
+ }
101
102
103
return c
mongo/options/dboptions.go
@@ -95,6 +95,9 @@ func MergeDatabaseOptions(opts ...*DatabaseOptions) *DatabaseOptions {
d.Registry = opt.Registry
+ d.BSONOptions = opt.BSONOptions
return d
0 commit comments