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

42 lines
926 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" : [
{
"hello1" : "world1",
"_id" : "products/648409995",
"_rev" : "648409995",
"_key" : "648409995"
},
{
"hello3" : "world1",
"_id" : "products/649065355",
"_rev" : "649065355",
"_key" : "649065355"
}
],
"hasMore" : true,
"id" : "649917323",
"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/649917323