From 593d7efb184bcd2d096a8ca2ee833ea29d21e44b Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 16 Dec 2024 12:17:43 -0700 Subject: [PATCH] GODRIVER-3443 Change MergeClientOptions link to MergeFindOptions --- docs/migration-2.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration-2.0.md b/docs/migration-2.0.md index b813c6c70b..bc7ec1862a 100644 --- a/docs/migration-2.0.md +++ b/docs/migration-2.0.md @@ -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)