Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

sdiff #

Returns the difference between a reference set and a list of other sets.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_sdiff/<_id>?keys=key1,key2,...
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "sdiff",
  "_id": "<key>",
  "keys": ["key1", "key2", "..."]
}

Argument #

  • _id: reference set key identifier
  • keys: list of sets to compare to the reference set

Response #

Returns an array of differences.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "sdiff",
  "collection": null,
  "index": null,
  "result": [
    "diff value1",
    "diff value2",
    "..."
  ]
}