mirror of https://gitee.com/bigwinds/arangodb
19 lines
464 B
Plaintext
19 lines
464 B
Plaintext
arangosh> a1 = db.example.insert({ a : 1 });
|
|
{
|
|
"_id" : "example/1150546827",
|
|
"_rev" : "1150546827",
|
|
"_key" : "1150546827"
|
|
}
|
|
arangosh> a2 = db.example.replace(a1, { a : 2 });
|
|
{
|
|
"_id" : "example/1150546827",
|
|
"_rev" : "1150743435",
|
|
"_key" : "1150546827"
|
|
}
|
|
arangosh> db.example.remove(a1);
|
|
[ArangoError 1200: precondition failed]
|
|
arangosh> db.example.remove(a1, true);
|
|
true
|
|
arangosh> db.example.document(a1);
|
|
[ArangoError 1202: document not found]
|