rpoplpush #
Removes the last element of a list, and pushes it back at the start of another list.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_rpoplpush
Method: POST
Body:
{
"source": "<key>",
"destination": "<key>"
}
Other protocols #
{
"controller": "ms",
"action": "rpoplpush",
"body": {
"source": "<key>",
"destination": "<key>"
}
}
Body properties #
destination
: the destination list to push the value intosource
: the source list from which the value is popped
Response #
Returns the popped/pushed element.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "rpoplpush",
"collection": null,
"index": null,
"result": "<value>"
}
Edit this page on Github(opens new window)