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
x-content-type-options: nosniff
{
"error" : false,
"code" : 201,
"result" : [
{
"_key" : "12021",
"_id" : "products/12021",
"_rev" : "_WgE7N2q--_",
"hello2" : "world1"
},
{
"_key" : "12024",
"_id" : "products/12024",
"_rev" : "_WgE7N2u--_",
"hello3" : "world1"
}
],
"hasMore" : true,
"id" : "12033",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.00033736228942871094
},
"warnings" : [ ]
},
"cached" : false
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/12033