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