Merge a given graph with the existing graph under marked merge nodes.
POST/graph/:graph_id/merge
Merge a given graph with the existing graph under marked merge nodes.
Request​
Path Parameters
The identifier of the graph
Query Parameters
Default value: true
If this parameter is set, the request will block until the batch update is finished. The response will contain the batch identifier and the result of the batch update.
- application/x-ndjson
Body
required
The graph is sent as newline delimited json, where each line holds a document, which is either a node or an edge.
- NodeInGraph
- Edge
oneOf
The identifier of this node.
reported
object
The kind of this node.
desired
object
metadata
object
The id of node to start from
The id of the node to go to
Possible values: [default
, delete
]
The type of this edge
Responses​
- 200
Return a summary of actions that has been applied.
- application/json
- Schema
- Example (from schema)
Schema
The number of nodes that have been created.
The number of nodes that have been updated.
The number of nodes that have been deleted.
The number of edges that have been created.
The number of edges that have been updated.
The number of edges that have been deleted.
{
"nodes_created": 0,
"nodes_updates": 0,
"nodes_deleted": 0,
"edges_created": 0,
"edges_updated": 0,
"edges_deleted": 0
}