Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2804

Merging ChangeStreamOptions can squash the FullDocument configuration

    • Not Needed
    • 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?

      The options.ChangeStream options constructor currently sets a default FullDocument configuration of Default (see here). That can lead to the configuration value in some ChangeStreamOptions structs being squashed because Default appears to be a user-configured option in the default struct constructed via options.ChangeStream.

      Definition of done:

      • Update the way that the default FullDocument value is set to prevent squashing that option when multiple ChangeStreamOptions are merged together.
      • Test that the FullDocument value is not overwritten when merging default ChangeStreamOptions

            Assignee:
            matt.dale@mongodb.com Matt Dale
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: