Add addCommandFields to additional commands

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Rishit Bhatia
            Reporter:
            Felipe Gasper
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: