Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3346

Delete query is systematically created with a "limit" parameter

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.4
    • Component/s: Query Operations
    • None

      Hello

      The delete requests are created with a "limit" parameter and mongodb does not accept it :

      db.domainevents.deleteMany(

      { aggregateIdentifier: "2f13501d-6199-425d-899f-cbd51488ec24", limit: "0" }

      )
      We did not find any way to change the sent request.

      The following code :

      https://github.com/mongodb/mongo-java-driver/blob/f27baf179dfc9de5673a06a3326dea66dcf04dca/driver-core/src/main/com/mongodb/operation/BulkWriteBatch.java

      systematically adds limit parameter in the request :

      writer.writeInt32("limit", deleteRequest.isMulti() ? 0 : 1);

       

      Thanks for mongodb

       
       

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            debeissat_nicolas Debeissat Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: