shell> curl -X POST --header 'accept: application/json' --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 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "69494",
"_id" : "products/69494",
"_rev" : "_ZXF6VF6--A",
"hello1" : "world1"
},
{
"_key" : "69496",
"_id" : "products/69496",
"_rev" : "_ZXF6VG----",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "69504",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.00012183189392089844,
"peakMemoryUsage" : 2487
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/69504