修复Label的结构

时间:2016-10-22 08:50:36

标签: neo4j

有没有办法在Neo4j中修复标签的结构?例如,修复标签:

Person {
    name : String,
    lastname : String
}

然后:

(p1:Person {name:"Jhon", lastname:"Doe"}) --> OK

(p2:Person {name:"Jenny", lastname:"Doe", age:"18"}) --> error

1 个答案:

答案 0 :(得分:2)

实现这一目标的唯一方法是实施TransactionEventHandler。有关此内容的详细说明,请参阅https://maxdemarzi.com/2015/03/25/triggers-in-neo4j/