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" : "68858",
"_id" : "products/68858",
"_rev" : "_ZG8LfPO--A",
"hello1" : "world1"
},
{
"_key" : "68860",
"_id" : "products/68860",
"_rev" : "_ZG8LfPS---",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "68868",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0001761913299560547,
"peakMemoryUsage" : 2487
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68868