问题
It is possible to create constraint in Neo4J database for attribute to be not null? Something like:
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS NOT NULL
回答1:
It's planned and been already implemented for Neo4j 2.3, should be available with 2.3.RC1
来源:https://stackoverflow.com/questions/31439614/not-null-attribute-in-neo4j-constraint