All data for the organization has been entered, albeit with an error. Kenny, the newly hired Safety Officer, has been recorded as reporting to Kyle rather than the Unit Supervisor, Eric.
REPLACE
operation behaves exactly as in the ArangoDB core REST API. It does not replace the underlying document, i.e. the body is replaced but the _key
remains the same._id
while inserting the reporting relationship between Kenny and Kyle, you can easily retrieve it by firing a simple AQL query. This is an exercise left for the reader.collection
parameter should be set to reporting
and the body should contain the entire contents of the new reporting relationship.{
"_id": "reporting/44799849",
"_from": "employees/44799683",
"_to": "employees/44794449"
}
_key
or _id
need be present._rev
can be omitted (ignored if present).CREATE
.