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

How to limit the number of document updates?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • Query Language, Querying
    • None
    • Triage

    Description

      Hi

      I want to limit the number of document updates in one command.

      for example

      db.users.updateMany(
       
          <filter>,
       
          <update>,
       
          {
       
              limit : 100
       
          }
       
      );
      

       

       

      Attachments

        Activity

          People

            backlog-server-triage Backlog - Triage Team
            abolfazl.ziaratban@gmail.com Abolfazl Ziaratban
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: