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

41 lines
913 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" : [
{
"hello2" : "world1",
"_id" : "products/1681837299",
"_rev" : "1681837299",
"_key" : "1681837299"
},
{
"hello5" : "world1",
"_id" : "products/1682820339",
"_rev" : "1682820339",
"_key" : "1682820339"
}
],
"hasMore" : true,
"id" : "1683016947",
"count" : 5,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 5,
"scannedIndex" : 0,
"filtered" : 0
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}
shell> curl -X DELETE --dump - http://localhost:8529/_api/cursor/1683016947