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

Delete query is systematically created with a "limit" parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.6.4
    • Fix Version/s: None
    • Component/s: Query Operations
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: