shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF
{
"query" : "FOR p IN products LIMIT 5 RETURN p",
"count" : true,
"batchSize" : 2
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"hello2" : "world1",
"_id" : "products/679418578",
"_rev" : "679418578",
"_key" : "679418578"
},
{
"hello5" : "world1",
"_id" : "products/680401618",
"_rev" : "680401618",
"_key" : "680401618"
}
],
"hasMore" : true,
"id" : "680598226",
"count" : 5,
"extra" : {
"stats" : {
"filtered" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"writesExecuted" : 0,
"writesIgnored" : 0
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/680598226