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

39 lines
897 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor
{"query":"FOR p IN products LIMIT 5 RETURN p","count":true,"batchSize":2}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"result" : [
{
"_id" : "products/1101801635",
"_key" : "1101801635",
"_rev" : "1101801635",
"hello1" : "world1"
},
{
"_id" : "products/1102129315",
"_key" : "1102129315",
"_rev" : "1102129315",
"hello2" : "world1"
}
],
"hasMore" : true,
"id" : "1103308963",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0
}
},
"error" : false,
"code" : 201
}
shell> curl -X DELETE --data-binary @- --dump - http://localhost:8529/_api/cursor/1103308963