Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78140

allow update to supply sort option

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Minor Change
    • v7.3, v7.0
    • QO 2024-02-05, QO 2024-02-19, QO 2024-03-04

      Unlike findAndModify, updateOne does not accept sort so in cases on match on more than one candidate document there is no way to control which will be updated.

      This is request to add such a option.

       

            Assignee:
            lynne.wang@mongodb.com Lynne Wang
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: