Misleading JavaDoc in MongoCollection.findOneAndUpdate methods

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 5.6.1
    • Affects Version/s: 5.5.1
    • Component/s: Documentation
    • None
    • 🔵 Done
    • Fully Compatible
    • Java Drivers
    • Completed
    • 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

      The JavaDoc for MongoCollection.findOneAndUpdate methods says in the return tag: 
      If no documents matched the query filter, then null will be returned. Actually, in such case, the driver returns an empty Publisher and no null value is emitted, which would probably be against the Reactive Streams spec.

            Assignee:
            Almas Abdrazak
            Reporter:
            Miłosz Tylenda
            Slav Babanin, Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: