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

Fix ChangeStream.tryNext() return type

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 5.4.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 2
    • Not Needed
    • 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?

      How are you using Mongo? What version of the server and driver are you using?

      Server: v4.4

      Driver: v5.3.0

      What is the feature/improvement you would like?

      Update ChangeStream.tryNext() return type to be consistent with ChangeStream.next().

      The underlying AbstractCursor has the same return type for both.

      What use case would this feature/improvement enable?

      Avoiding having to cast when using ChangeStream.tryNext().

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            alec@reedys.com Alec Gibson
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: