Add addCommandFields to additional commands

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • None
    • None
    • Go Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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.

      Integrations tests are added for all updated APIs.

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

              Created:
              Updated: