Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #118 from kuzzleio/fix-sdk-4
Browse files Browse the repository at this point in the history
deleteDocument now wrap filters into a query object
  • Loading branch information
benoitvidis committed Mar 13, 2017
2 parents c675788 + ff7795a commit efc5603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/kuzzle/sdk/core/Collection.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ protected Collection deleteDocument(final String documentId, final JSONObject fi
data.put("_id", documentId);
action = "delete";
} else {
data.put("body", filter);
data.put("body", new JSONObject().put("query", filter));
action = "deleteByQuery";
}
this.kuzzle.query(makeQueryArgs("document", action), data, options, new OnQueryDoneListener() {
Expand Down

0 comments on commit efc5603

Please sign in to comment.