Adds strictly typed edges to the pod, all edges now need to defined in the schema as ItemEdgeType
. checks edges when calling insert_edge
ItemEdgeType
:{
"type": "ItemEdgeType", /* exactly this, and nothing else */
"edgeName": "yourEdge", /* e.g. "author" */
"sourceType": "YourSourceType", /* A valid item type, e.g. "Message" */
"targetType": "YourTargetType", /* A valid item type, e.g. "Person"*/
}
type_edges: HashMap<String, HashMap<String, String>>
, records all edge types on each itemdatabase_utils::insert_edge
checks for both source and target types, and inserts if edge is defined in schema::Schema