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

How to limit the number of document updates?

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Language, Querying
    • Labels:
      None

      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

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

              Dates

              Created:
              Updated:
              Resolved: