I am trying to have such a restriction that any node labeled "Users" must have certain properties (for example, username, password, etc.)
When trying CREATE CONSTRAINT ON (u:Users) ASSERT exists(u.username) We get an error message: Could not create CONSTRAINT ON ( users:Users ) ASSERT exists(users.username) Neo.DatabaseError.Schema.ConstraintCreationFailure
This command was taken from official 2.3.2 documents, and the command was launched from the browser interface.
So what am I doing wrong? In addition, is it recommended to store user confidential information in neo4j?
Thanks.
java neo4j constraints
dlv
source share