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

Delete query is systematically created with a "limit" parameter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • 3.6.4
    • None
    • Query Operations
    • None

    Description

      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

       
       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: