Context
C2C would like to switch mongosync to use driver-native APIs rather than RunCommand. (See REP-7345)
We can't do that, though, unless `addCommandFields` is supported across all request APIs. This was added for GODRIVER-3668, which only added it for update-related commands. For mongosync to use driver APIs we would need all relevant commands (e.g., FindOne, DeleteOne) to accept this parameter in internal options.
Definition of done
All relevant requests should accept & correctly handle `addCommandFields` when the relevant "xoptions.SetInternal..." function is called.
Integrations tests are added for all updated APIs.
- is duplicated by
-
GODRIVER-4008 mongo-go-driver - PR #2460: Extend `addCommandFields` to all Collection & IndexView APIs
-
- Closed
-
- is related to
-
GODRIVER-3668 No `bypassEmptyTsReplacement` interface exposed in v2 driver
-
- Closed
-
- related to
-
GODRIVER-4008 mongo-go-driver - PR #2460: Extend `addCommandFields` to all Collection & IndexView APIs
-
- Closed
-