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" : "9649",
"_id" : "products/9649",
"_rev" : "_VReqgra--A",
"hello3" : "world1"
},
{
"_key" : "9646",
"_id" : "products/9646",
"_rev" : "_VReqgra--_",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "9658",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0001399517059326172
},
"warnings" : [ ]
},
"cached" : false
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/9658