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" : [
{
"hello3" : "world1",
"_id" : "products/650172871",
"_rev" : "650172871",
"_key" : "650172871"
},
{
"hello1" : "world1",
"_id" : "products/649517511",
"_rev" : "649517511",
"_key" : "649517511"
}
],
"hasMore" : true,
"id" : "651024839",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/651024839