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 undefined
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "102966",
"_id" : "products/102966",
"_rev" : "_XUJy7Li--_",
"hello4" : "world1"
},
{
"_key" : "102960",
"_id" : "products/102960",
"_rev" : "_XUJy7Le--B",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "102972",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.00020885467529296875
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/102972