rpush #
Appends values at the end of a list.
If the destination list does not exist, it is created holding an empty list before performing the operation.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_rpush/<_id>
Method: POST
Body:
{
"values": ["value1", "value2", "..."]
}
Other protocols #
{
"controller": "ms",
"action": "rpush",
"_id": "<key>",
"body": {
"values": ["value1", "value2", "..."]
}
}
Argument #
_id
: list key identifier
Body properties #
values
: an array of values to push to the list
Response #
Returns the updated list length.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "rpush",
"collection": null,
"index": null,
"result": 12
}
Edit this page on Github (opens new window)