1
0
Fork 0
arangodb/Documentation/Examples/RestCursorDelete.generated

42 lines
934 B
Plaintext

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
{
"result" : [
{
"hello4" : "world1",
"_id" : "products/2201245084",
"_rev" : "2201245084",
"_key" : "2201245084"
},
{
"hello3" : "world1",
"_id" : "products/2200917404",
"_rev" : "2200917404",
"_key" : "2200917404"
}
],
"hasMore" : true,
"id" : "2201769372",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"cached" : false,
"error" : false,
"code" : 201
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/2201769372