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

allow update to supply sort option

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization
    • QO 2024-02-05, QO 2024-02-19

    Description

      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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: