How to limit the number of document updates?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query Language, Querying
    • None
    • Server Triage
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi

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

      for example

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

       

       

              Assignee:
              [HELP ONLY] Backlog - Triage Team
              Reporter:
              Abolfazl Ziaratban
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: