Skip to content

Commit 593d7ef

Browse files
GODRIVER-3443 Change MergeClientOptions link to MergeFindOptions
1 parent 48da8b8 commit 593d7ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ function MergeOptions(target, optionsList):
532532
return target
533533
```
534534

535-
Currently, the driver maintains this logic for every options type, e.g. [MergeClientOptions](https://github.com/mongodb/mongo-go-driver/blob/2e7cb372b05cba29facd58aac7e715c3cec4e377/mongo/options/clientoptions.go#L1065). For v2, we’ve decided to abstract the merge functions by changing the options builder pattern to maintain a slice of setter functions, rather than setting data directly to an options object. Typical usage of options should not change, for example the following is still honored:
535+
Currently, the driver maintains this logic for every options type, e.g. [MergeFindOptions](https://github.com/mongodb/mongo-go-driver/blob/2e7cb372b05cba29facd58aac7e715c3cec4e377/mongo/options/findoptions.go#L257). For v2, we’ve decided to abstract the merge functions by changing the options builder pattern to maintain a slice of setter functions, rather than setting data directly to an options object. Typical usage of options should not change, for example the following is still honored:
536536

537537
```go
538538
opts1 := options.Find().SetBatchSize(1)

0 commit comments

Comments
 (0)