shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF
{
"query" : "FOR i IN 1..1000 FILTER i > 500 LIMIT 10 RETURN i",
"count" : true,
"options" : {
"fullCount" : true
}
}
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
501,
502,
503,
504,
505,
506,
507,
508,
509,
510
],
"hasMore" : false,
"count" : 10,
"cached" : false,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 0,
"scannedIndex" : 0,
"filtered" : 500,
"httpRequests" : 0,
"fullCount" : 500,
"executionTime" : 0.0005273818969726562,
"peakMemoryUsage" : 75048
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}