Replace

Replace entire single/multiple documents with new content.

The Story So Far...

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.

We will correct this data entry error in our database by replacing the incorrect reporting edge. After replacement, Kenny should be correctly shown to be reporting to Eric.

circle-exclamation
circle-check

Entering Data

In the Swagger console locate the tab with the button. The 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" }

circle-info
  1. Only one of _key or _id need be present.

  2. _rev can be omitted (ignored if present).

End Result

Running the graph query should now yield the correct relations:

Kenny is now correctly shown to be reporting to Eric.
circle-check

Last updated