Skip to content

Commit

Permalink
GODRIVER-3443 Change MergeClientOptions link to MergeFindOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Dec 16, 2024
1 parent 48da8b8 commit 593d7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migration-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function MergeOptions(target, optionsList):
return target
```

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:
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:

```go
opts1 := options.Find().SetBatchSize(1)
Expand Down

0 comments on commit 593d7ef

Please sign in to comment.