Creating a node in neo4j with one unique property other than ID
问题 My Project is based on Spring boot + Neo4j . I am trying to create a new Privilege node , but don't want to duplicate Privilege. Now I have a UserRole node which is holds List<Privilege> . Now I want that when I create a Privilege , it check first is another Privilege exists with same privilegeName property. Below are my domain classes. UserRole Class @NodeEntity public class UserRole { public UserRole(User user, Role role) { this.user = user; this.role = role; } /** For Jackson Parsing **/