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/1141597654",
"_key" : "1141597654",
"_rev" : "1141597654",
"hello5" : "world1"
},
{
"_id" : "products/1140942294",
"_key" : "1140942294",
"_rev" : "1140942294",
"hello3" : "world1"
}
],
"hasMore" : true,
"id" : "1141794262",
"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/1141794262