2016-10-22 46 views
0

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

Person { 
    name : String, 
    lastname : String 
} 

然后:

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

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

据我所知,没有办法要求特定标签的特定属性(或防止他人)。 – jonrsharpe

+0

@jonrsharpe这就是我害怕的......谢谢 –

+3

你可以在企业版中要求他们([property existence constraints](http://neo4j.com/docs/developer-manual/current/cypher/#query- constraints-prop-exist-nodes)),但不能阻止或限制他人。 –

回答