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.

hmget #

Returns the values of the specified hash's fields.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_hmget/<_id>?fields=<field1,field2,...>
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "hmget",
  "_id": "<key>",
  "fields": ["field1", "field2", "..."]
}

Arguments #

  • _id: hash key identifier
  • fields: the list of fields to fetch

Response #

Returns the list of requested field values, in the same order than in the query.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "hmget",
  "collection": null,
  "index": null,
  "result": [
    "field1's value",
    "field2's value",
    "...'s value"
  ]
}