Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5510

Do not silently filter out $changeStream stage options when building a change stream cursor via the watch() API

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

      When a change stream's stage options are being validated, any option key not present in the CHANGE_STREAM_OPTIONS const is being silently discarded.

      There are situations where undocumented command options may exist, and in these cases as the `watch` API would not be aware of them (ChangeStreamOptions are documented in the spec) the API should either WARN or throw.

      This would be a breaking change

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: