-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.9
-
Component/s: Querying
-
None
-
ALL
-
Hello
The following request does not delete anything :
db.domainevents.deleteMany(
{ aggregateIdentifier: "2f13501d-6199-425d-899f-cbd51488ec24", limit: "0" })
We have no way to change the sent request in order to remove that "limit" parameters as we are using mongo java driver (https://github.com/mongodb/mongo-java-driver)
behind axon (https://github.com/AxonFramework/AxonFramework)
The following code :
systematically adds limit parameter in the request :
writer.writeInt32("limit", deleteRequest.isMulti() ? 0 : 1);
I will create an issue in that project as well.
So we are stuck with that request, and mongodb has no reason not to delete the documents ?
Thanks for mongodb