lpop #
Removes and returns the first element of a list.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_lpop/<_id>
Method: POST
Other protocols #
{
"controller": "ms",
"action": "lpop",
"_id": "<key>"
}
Argument #
_id
: list key identifier
Response #
Returns the removed value.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "lpop",
"collection": null,
"index": null,
"result": "foo"
}
Edit this page on Github (opens new window)