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" : "103843",
"_id" : "products/103843",
"_rev" : "_Y2g6upm--B",
"hello2" : "world1"
},
{
"_key" : "103839",
"_id" : "products/103839",
"_rev" : "_Y2g6upm--_",
"hello1" : "world1"
}
],
"hasMore" : true,
"id" : "103855",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0001850128173828125,
"peakMemoryUsage" : 2232
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/103855