kuzzleio / kuzzle

Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -
https://kuzzle.io
Apache License 2.0
1.44k stars 124 forks source link

Wrong response from deleteByQuery #1076

Closed Aschen closed 5 years ago

Aschen commented 6 years ago

I find an inconsistency between the API documentation and the actual response from Kuzzle.
Controller: document Action: deleteByQuery

Expected Behavior

Matching ids should be returned in response.result.hits

Current Behavior

Matching ids are returned in response.result.ids

Possible Solution

Steps to Reproduce

  1. Create an index and a collection
  2. Insert a document
  3. Execute a deleteByQuery action
  4. Inspect response.result

Context (Environment)

node v9.8.0 kuzzle v1.2.9

Aschen commented 5 years ago

Will be part of API redesign in v3