mirror of https://gitee.com/bigwinds/arangodb
19 lines
458 B
Plaintext
19 lines
458 B
Plaintext
arangosh> a1 = db.example.insert({ a : 1 });
|
|
{
|
|
"_id" : "example/625104284",
|
|
"_rev" : "625104284",
|
|
"_key" : "625104284"
|
|
}
|
|
arangosh> a2 = db.example.replace(a1, { a : 2 });
|
|
{
|
|
"_id" : "example/625104284",
|
|
"_rev" : "625300892",
|
|
"_key" : "625104284"
|
|
}
|
|
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]
|